Using datagrid

Discussion in 'ASP .Net' started by Paul, May 11, 2004.

  1. Paul

    Paul Guest

    I have a datagrid that bounds by dataview with edit button on each row. When
    an edit button is clicked, it goes to another page for editing purpose only.
    When save or cancel button is clicked, it needs to come back to same record
    or same page that it was in. How can I go back to same page I was in before
    by searching the primary key in the datagrid?

    Thanks,
    Paul, May 11, 2004
    #1
    1. Advertising

  2. Paul

    Lerp Guest

    Hi,

    there's a selected item index property you can access SelectedIndex property

    cheers, Lerp

    "Paul" <~~pyoon~~@phnip.com> wrote in message
    news:eeI#...
    > I have a datagrid that bounds by dataview with edit button on each row.

    When
    > an edit button is clicked, it goes to another page for editing purpose

    only.
    > When save or cancel button is clicked, it needs to come back to same

    record
    > or same page that it was in. How can I go back to same page I was in

    before
    > by searching the primary key in the datagrid?
    >
    > Thanks,
    >
    >
    Lerp, May 11, 2004
    #2
    1. Advertising

  3. Paul

    Paul Guest

    Thanks for the information But, I didn't get too far.

    No matter what I do, it will not go to specific page that the data is in.

    Do you have a sample code?

    Thanks,

    "Lerp" <> wrote in message
    news:...
    > Hi,
    >
    > there's a selected item index property you can access SelectedIndex

    property
    >
    > cheers, Lerp
    >
    > "Paul" <~~pyoon~~@phnip.com> wrote in message
    > news:eeI#...
    > > I have a datagrid that bounds by dataview with edit button on each row.

    > When
    > > an edit button is clicked, it goes to another page for editing purpose

    > only.
    > > When save or cancel button is clicked, it needs to come back to same

    > record
    > > or same page that it was in. How can I go back to same page I was in

    > before
    > > by searching the primary key in the datagrid?
    > >
    > > Thanks,
    > >
    > >

    >
    >
    Paul, May 11, 2004
    #3
    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. Dave
    Replies:
    0
    Views:
    442
  2. BK Kim

    datagrid in datagrid

    BK Kim, Feb 23, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    538
    Alvin Bruney [MVP]
    Mar 2, 2004
  3. Andreas Klemt
    Replies:
    0
    Views:
    293
    Andreas Klemt
    Oct 8, 2003
  4. Kostia
    Replies:
    1
    Views:
    263
    Scott Mitchell [MVP]
    Feb 26, 2004
  5. Phani
    Replies:
    2
    Views:
    124
    Phani
    Apr 25, 2005
Loading...

Share This Page