public void BindVendorMaterialList() { ApplicationResult objResult = new ApplicationResult(); VendorBL objVendorBL = new VendorBL(); objResult = objVendorBL.Vendor_MaterialListReport(); if (objResult.resultDT.Rows.Count > 0) { gvReport.DataSource = objResult.resultDT; gvReport.DataBind(); divReport.Visible = true; //btnPrintDetail.Visible = true; lblTrust.Text = Session[ApplicationSession.TRUSTNAME].ToString(); } else { divReport.Visible = false; ClearAll(); ScriptManager.RegisterStartupScript(this, GetType(), "alert", "alert('No Records Found.');", true); } }