GridView editing

Discussion in 'ASP .Net' started by David C, Apr 20, 2007.

  1. David C

    David C Guest

    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
     
    David C, Apr 20, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fred K. Augustine, Jr

    Editing with GridView control

    Fred K. Augustine, Jr, Nov 21, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    937
    Fred K. Augustine, Jr
    Nov 21, 2005
  2. misiek
    Replies:
    7
    Views:
    50,555
    Sri123
    Apr 8, 2011
  3. =?Utf-8?B?TWljaGFlbA==?=

    Gridview Newvalues are empy after editing

    =?Utf-8?B?TWljaGFlbA==?=, Apr 13, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    1,841
    =?Utf-8?B?TWljaGFlbA==?=
    Apr 13, 2006
  4. =?Utf-8?B?bWdvbnphbGVzMw==?=

    GridView Hierarchical View - Gridview in Gridview

    =?Utf-8?B?bWdvbnphbGVzMw==?=, May 9, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    18,046
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    May 9, 2006
  5. Replies:
    0
    Views:
    621
Loading...

Share This Page