private void DrawCvrgGrid() { DataTable tbl = Data.GetPendingCvrgs(ViewState["EE_Number"].ToString()); if (!string.IsNullOrEmpty(Request.Params["ee"])) { if (tbl.Rows.Count.Equals(0)) { gvCvrg.Visible = false; return; } } gvCvrg.DataSource = tbl; gvCvrg.DataBind(); lblName.Visible = !tbl.Rows.Count.Equals(0); }