protected void AssignedEmpGV_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
        int index = AssignedEmpGV.EditIndex;
        GridViewRow row = AssignedEmpGV.Rows[index];

        Label EmpID = (Label)row.FindControl("lblEmpID");
        DropDownList PrevJob = (DropDownList)row.FindControl("DropPrevJob");
        DropDownList JobTitle = (DropDownList)row.FindControl("DropJobTitle");
        DropDownList Grade = (DropDownList)row.FindControl("DropGrade");
        TextBox Salary = (TextBox)row.FindControl("txtSalary");
        DropDownList Branch = (DropDownList)row.FindControl("DropBranch");
        DropDownList PromStatus = (DropDownList)row.FindControl("DropDownList1");

        employee.EmpID = EmpID.Text;
        employee.PrevJob =PrevJob.SelectedValue;
        employee.JobTitle =JobTitle.SelectedValue;
        employee.JobGrade =Grade.SelectedValue;

        employee.Salary = Salary.Text;
        employee.Branch =Branch.SelectedValue;
        employee.Promstatus =PromStatus.SelectedValue;


        EmployeeManager brEmployeeManager = new EmployeeManager(employee);

        DataTable districtID = brEmployeeManager.getDistrictBasedOnBranch();

        employee.District = districtID.Rows[0]["district_id"].ToString();

        brEmployeeManager = new EmployeeManager(employee);
        brEmployeeManager.UpdateAssignedemployee();
        AssignedEmpGV.EditIndex = -1;


        DataTable dt = BranchEmployeeStatusManager.BindGrid();
        BindDataSetToGV(dt);
    }