protected void userGrid_RowUpdating(object sender, GridViewUpdateEventArgs e)
        {
            int userid = Convert.ToInt32(userGrid.DataKeys[e.RowIndex].Value.ToString());
            string username = userGrid.DataKeys[e.RowIndex].Values["UserName"].ToString();
            string password = userGrid.DataKeys[e.RowIndex].Values["PWD"].ToString();
            TextBox newpassword = (TextBox)userGrid.Rows[e.RowIndex].FindControl("txt_editpwd");
            TextBox emailid = (TextBox)userGrid.Rows[e.RowIndex].FindControl("txt_editemailid");
            TextBox phno = (TextBox)userGrid.Rows[e.RowIndex].FindControl("txt_editphno");
            TextBox address = (TextBox)userGrid.Rows[e.RowIndex].FindControl("txt_editaddress");
            CheckBox userstatus = (CheckBox)userGrid.Rows[e.RowIndex].FindControl("cb_editactvsts");

            string encryptedpwd;
            if (password == newpassword.Text)
            {
                encryptedpwd = newpassword.Text;
            }
            else
            {
                encryptedpwd = CLASS.PasswordEncryption.EncryptIt(newpassword.Text);
            }

            BusinessEntitiesBS.UserEntities.userobj UpdateUserObj=new BusinessEntitiesBS.UserEntities.userobj();
            UpdateUserObj.uname=username;
            UpdateUserObj.pwd = encryptedpwd;
            UpdateUserObj.emailid=emailid.Text;
            UpdateUserObj.phno=phno.Text;
            UpdateUserObj.address=address.Text;
            UpdateUserObj.userstatus=userstatus.Checked;

            IAdmin UpdateUsers = new AdminItems();
            int updated = UpdateUsers.UpdateUsers(UpdateUserObj, userid);
            if (updated != -1)
            {
                lbl_status.Text = HardCodedValues.BuddaResource.UpdateSuccess;

                userGrid.EditIndex = -1;
                searchDT(txt_username.Text);
            }
            else
            {
                lbl_status.Text = HardCodedValues.BuddaResource.UpdateFail;
            }
        }