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

M

Mark B

VB.NET:

How do I get the value of a particular field in the currently edited
gridview row?
 
M

Mark B

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top