GridView editing

D

David C

I want to put the current value of a control on the GridView line being
edited in order to use in a later process. Below is the RowEditing event.

Sub SubfilesGridView_RowEditing(ByVal sender As Object, ByVal e As
GridViewEditEventArgs)

' Get the seq# for the row being edited.

' SeqNo is contained in the 2nd column (index 1).

Dim strseqno As String = SubfilesGridView.Rows(e.NewEditIndex).Cells(1).Text

'Put old seqno into form field

txtMsg.Text = ""

txtOldValue.Text = strseqno

End Sub

When this event triggers, the txtOldValue.Text is empty. Thanks.

David
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top