//Bind Staff Grid Data #region [Bind Staff Grid Data] private void BindStaffGridData() { try { EWA_Common objEWA = new EWA_Common(); BL_Common objBL = new BL_Common(); objEWA.OrgId = Convert.ToString(Session["OrgId"]); objEWA.CourseId = ddlCourse.SelectedValue; //objEWA.DesignationId = ddlDesignation.SelectedItem.ToString(); // objEWA.DepartmentId = ddlDepartment.SelectedItem.ToString(); DataSet ds = objBL.BindStaffList_BL(objEWA); if (ds.Tables[0].Rows.Count > 0) { GrdStaff.DataSource = ds; GrdStaff.DataBind(); btnDownload.Visible = true; } else { GrdStaff.DataSource = null; GrdStaff.DataBind(); btnDownload.Visible = false; } } catch (Exception exp) { GeneralErr(exp.Message.ToString()); } }