public void CaptCashBind() { int?Vessel_ID; if (ddlVessel.SelectedValue.ToString() == "" || ddlVessel.SelectedValue.ToString() == "0") { Vessel_ID = null; } else { Vessel_ID = Convert.ToInt32(ddlVessel.SelectedValue); } DataSet CaptCashDs = BLL_PB_PortageBill.Get_CapCashReportCur(Vessel_ID); CaptCashGV.DataSource = CaptCashDs.Tables[0]; CaptCashGV.DataBind(); }