protected void OtherDPromotionGV_RowUpdating(object sender, GridViewUpdateEventArgs e) { int index = OtherDPromotionGV.EditIndex; GridViewRow row = OtherDPromotionGV.Rows[index]; Label EmpID = (Label)row.FindControl("lblEmpID0"); DropDownList PromStatus = (DropDownList)row.FindControl("DropStatus"); employee.EmpID = EmpID.Text.Trim(); employee.Promstatus = PromStatus.SelectedValue; //bEmployeeStatus = new BranchEmployeeStatusManager(); EmployeeManager brEmployeeManager = new EmployeeManager(employee); brEmployeeManager.UpdateAssignedemployeefromOtherDistrict(); OtherDPromotionGV.EditIndex = -1; DataTable dt = BranchEmployeeStatusManager.getAssignedEmployeeFormOtherDistrict(); BindDataSetToGVforOtherDistrict(dt); }