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