sorting a dataGrid - how can I get the current/selected row?

Discussion in 'ASP .Net Datagrid Control' started by Dave, Jun 30, 2003.

  1. Dave

    Dave Guest

    Hi,
    I have a ASP.Net application with a DG where a user can click on a row to
    obtain details regarding that row.

    After sorting my DG, the current row that is clicked on is different then
    the row that the DG
    obtains details on.

    How do I get the current row once my DG has been sorted?

    TIA,
    Dave
     
    Dave, Jun 30, 2003
    #1
    1. Advertising

  2. Dave

    Saravana Guest

    Store the primary key in Datakeyfield while binding and retreive it while
    you want to show the details. Then show the detail record based on this
    primary key.


    --
    Saravana
    Microsoft India Community Star,
    MCAD,SE,SD,DBA.


    "Dave" <> wrote in message
    news:acMLa.18128$...
    > Hi,
    > I have a ASP.Net application with a DG where a user can click on a row to
    > obtain details regarding that row.
    >
    > After sorting my DG, the current row that is clicked on is different then
    > the row that the DG
    > obtains details on.
    >
    > How do I get the current row once my DG has been sorted?
    >
    > TIA,
    > Dave
    >
    >
    >
    >
     
    Saravana, Jun 30, 2003
    #2
    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. Northern
    Replies:
    1
    Views:
    4,987
    Greg Burns
    Jul 22, 2003
  2. =?Utf-8?B?U3VyZXNo?=
    Replies:
    1
    Views:
    469
    Saravana
    Nov 22, 2004
  3. SeePee
    Replies:
    4
    Views:
    1,699
    SeePee
    Jul 23, 2010
  4. D
    Replies:
    0
    Views:
    220
  5. AlainCD
    Replies:
    0
    Views:
    206
    AlainCD
    Jan 12, 2006
Loading...

Share This Page