private void BindPortTemplate() { DataTable dt = objPortCall.Get_PortCallTemplate(UDFLib.ConvertIntegerToNull(Request.QueryString["Vessel_ID"].ToString())); if (dt.Rows.Count > 0) { gvTemplate.DataSource = dt; gvTemplate.DataBind(); gvTemplate.Visible = true; } else { gvTemplate.DataSource = dt; gvTemplate.DataBind(); } }
private void BindPortTemplate() { DataTable dt = objPortCall.Get_PortCallTemplate(UDFLib.ConvertIntegerToNull(DDLVesselFilter.SelectedValue)); if (dt.Rows.Count > 0) { gvTemplate.DataSource = dt; gvTemplate.DataBind(); gvTemplate.Visible = true; } else { gvTemplate.DataSource = dt; gvTemplate.DataBind(); //gvTemplate.Visible = false; } }