private void getEmployeeNotTookTrainBasedOnBranch() { clearGVandmsg(); if (DropDNotAttTrainSpecBr.SelectedValue != "-1" && DropDNotAttBranchSpec.SelectedValue != "-1") { EmployeeManager manage = new EmployeeManager(); DataTable result = manage.getEmployeeNotTookSpecTrainingSpecBranch(DropDNotAttTrainSpecBr.SelectedValue, DropDNotAttBranchSpec.SelectedValue); if (result != null && result.Rows.Count > 0) { TrainingReportGridView.DataSource = result; TrainingReportGridView.DataBind(); } } else { ResultPanel.Visible = false; } }