title: How to get cell value in RowUpdating Event GridView?
body: <p>I want to obtain the new value of a cell in the gridview rowUpdating event:</p>
  
  <pre><code> roles.RoleName = gvRoles.Rows[e.RowIndex].Cells[GetColumnIndexByName(row, "RoleName")].Text;
  </code></pre>
  
  <p>But the value is empty.</p>
  
  <p>I have checked e.NewValues which is an ordered Dictionary. It contains the new changed value. How do I retrieve the new values for update?</p>
  
  <p>aspx design is:</p>
  
  <pre><code>&lt;asp:GridView ID="gvRoles" DataKeyNames="RoleId" runat="server" 
      AutoGenerateColumns="False" GridLines="Vertical" CssClass="table 
      table-striped table-bordered" AutoGenerateEditButton="True" 
      OnRowCancelingEdit="gvRoles_RowCancelingEdit" OnRowUpdating="gvRoles_RowUpdating" 
      OnRowEditing="gvRoles_RowEditing"&gt;
      &lt;Columns&gt;
          &lt;asp:BoundField DataField="RoleId" HeaderText="RoleId" ReadOnly="True" /&gt;
          &lt;asp:BoundField DataField="RoleName" HeaderText="RoleName" ReadOnly="false" /&gt;
          &lt;asp:BoundField DataField="Role_Description"  HeaderText="Role Description"  ReadOnly="false" /&gt;
          &lt;asp:TemplateField HeaderText="RoleStatus"&gt;
              &lt;EditItemTemplate&gt;
                  &lt;asp:DropDownList ID="ddlStatus" runat="server" SelectedValue='&lt;%# Bind("Role_Status") %&gt;' &gt;
                  &lt;asp:ListItem&gt;True&lt;/asp:ListItem&gt;
                  &lt;asp:ListItem&gt;False&lt;/asp:ListItem&gt;
                  &lt;/asp:DropDownList&gt;
              &lt;/EditItemTemplate&gt;
              &lt;ItemTemplate&gt;
                  &lt;asp:Label ID="lblRoleStatus" runat="server" 
                      Text='&lt;%# Bind("Role_Status") %&gt;'&gt;
                  &lt;/asp:Label&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
      &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>