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

            Label lblEmpName = (Label)row.FindControl("lblEmpbyName");
            Label lblEvalationFor = (Label)row.FindControl("lblevalFor");
            Label lblEvalatedFor = (Label)row.FindControl("lblEvalbyName");
            TextBox txtValue = (TextBox)row.FindControl("txtMarkValue");
            TextBox txtRemark = (TextBox)row.FindControl("txtRemarkbyName");

            string empName = lblEmpName.Text.Trim();
            string evaFor = lblEvalationFor.Text.Trim();
            string evaledFor = lblEvalatedFor.Text.Trim();
            string markValue = txtValue.Text.Trim();
            string remark = txtRemark.Text.Trim();

            MatchCollection matchena = Regex.Matches(empName, @"\[.*?\]");
            string[] gettestID = matchena.Cast<Match>()
                                       .Select(m => m.Groups[0].Value.Trim(new char[] { '[', ']' }))
                                       .ToArray();

            string tempEmpID = gettestID[0];

            string tempEvalutedFor = "";

            if (evaledFor.Equals("Employee Rating"))
            {
                tempEvalutedFor = "2";
            }
            else if (evaledFor.Equals("Vacancy Announcement"))
            {
                tempEvalutedFor = "1";
            }

            EmployeeManager brEmployeeManager = new EmployeeManager();

            DataTable dataTable = brEmployeeManager.UpdateHROfficerPMSResult(tempEmpID, evaFor, tempEvalutedFor, markValue, remark);

            reportbyOfficerGV.Visible = true;
            reportbyOfficerGV.EditIndex = -1;

            bindDataGV();

            DropDOfficerClerk.Enabled = true;
        }
        catch (Exception ex)
        {
            clearMsgLabel();
            msgPanel.Visible = true;
            ErroroDIV.Visible = true;
            lblErrorMsg.Text = ex.StackTrace;
        }
    }