Get the value of a particular field in the currently edited gridview row

  • Thread starter Thread starter Mark B
  • Start date Start date
M

Mark B

VB.NET:

How do I get the value of a particular field in the currently edited
gridview row?
 
Protected Sub GridView1_RowEditing(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.GridViewEditEventArgs) Handles
GridView1.RowEditing

Dim strAutoNumberDisplayed As String
strAutoNumberDisplayed =
GridView1.Rows(e.NewEditIndex).Cells(6).Text
Response.Write(strAutoNumberDisplayed)

End Sub
 
Back
Top