//Bind Student Grid Data #region [Bind Student Grid Data] private void BindStudentGridData() { try { EWA_Common objEWA = new EWA_Common(); BL_Common objBL = new BL_Common(); objEWA.OrgId = Session["OrgId"].ToString(); objEWA.CourseId = ddlCourse.SelectedValue.ToString(); objEWA.BranchId = ddlBranch.SelectedValue.ToString(); objEWA.ClassId = ddlClass.SelectedValue.ToString(); objEWA.DivisionId = ddlDivision.SelectedValue.ToString(); DataSet ds = objBL.BindStudentData_BL(objEWA); if (ds.Tables[0].Rows.Count != 0) { GrdSender.DataSource = ds; GrdSender.DataBind(); GrdSender.Columns[2].Visible = true; dsGrdSender = ds.Copy(); } else { ShowEmptyGridView(GrdSender); } } catch (Exception exp) { GeneralErr(exp.Message.ToString()); } }