private void getEmployeeBasedOnJTandBranch() { clearLabel(); GridView1.DataSource = null; GridView1.DataBind(); GridView1.EmptyDataText = ""; if (JTitWBranchDropBox.SelectedValue != "-1" && DropDownListJTBranch.SelectedValue != "-1") { EmployeeManager manage = new EmployeeManager(); DataTable result = manage.getDistrictEmployeeBasedOnJTAndBranch(JTitWBranchDropBox.SelectedValue, DropDownListJTBranch.SelectedValue); if (result != null && result.Rows.Count > 0) { GridView1.DataSource = result; GridView1.DataBind(); } } }