title: Get cell value from specified column in a Gridview upon "RowUpdating" Event ASP.NET/VB
body: <p>What i want to do is te following... i have a gridview that loads the data from a SQL server, i have the e.NewValue and e.oldValue to determine which data was being modified/updated but i need to get the unique record ID which is store in "ID_ControlCharts" column</p>
  
  <p>So, can you provide a code snippet/brief explanation in how to get the value from "ID_controlCharts" already filled by the gridview when i updated 1 cell (e.new/old)???</p>
  
  <p>Note: The index is not what i needed since the row can be deleted and the reference to that row is now lost, so since the "ID_controlCharts" is filled automatically by SQL server key, its perfect for my situation.</p>
  
  <p>codebehind</p>
  
  <pre><code>    If e.Equals("Control_SeqRef_CH") = False Then
          Dim oldvalue As String = e.OldValues("Control_SeqRef_CH")
          Dim newvalue As String = e.NewValues("Control_SeqRef_CH")
          Dim rowindex As Integer = e.RowIndex
          Dim IDfromcontrol as integer = ???
  
          MsgBox(oldvalue)
          MsgBox(newvalue)
          MsgBox(rowindex)
          Msgbox(IDfromcontrol)
  
      Else
          MsgBox("same")
      End If
  </code></pre>