Datagrid Sorting Edit Index

Discussion in 'ASP .Net Web Controls' started by JDP@Work, Oct 3, 2004.

  1. JDP@Work

    JDP@Work Guest

    I can dynamically sort my datagrid

    However when I select an item to edit before I sort, for example, selecting the
    Edit link on physical row 3, itemIndex = 2, that row highlights and I can edit
    my two editable text fields, HOWEVER....

    When I SORT, and I select the same physical row 3, this should be itemIndex
    either 2 or say 26, but it opens the original itemindex = 2 item and not 26 as
    it should, it's as if the itemindex is still 2 for the datagrid row, but the
    itemindex for the data is now in position n, but certainly not at postition 2.

    It should be 2 if the data is re-indexed or 26 if it is not, but it seems that
    it's the relative index for the grid and has nothing to do with the data item
    number.

    TIA

    JeffP.....
    JDP@Work, Oct 3, 2004
    #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. San Diego Guy
    Replies:
    0
    Views:
    534
    San Diego Guy
    Aug 7, 2003
  2. Schultz
    Replies:
    3
    Views:
    547
    =?Utf-8?B?QmlsbCBCb3Jn?=
    Feb 14, 2005
  3. Sharon McCarty
    Replies:
    0
    Views:
    242
    Sharon McCarty
    Nov 24, 2004
  4. Frank Kurka
    Replies:
    8
    Views:
    291
  5. Tomasz Chmielewski

    sorting index-15, index-9, index-110 "the human way"?

    Tomasz Chmielewski, Mar 4, 2008, in forum: Perl Misc
    Replies:
    4
    Views:
    269
    Tomasz Chmielewski
    Mar 4, 2008
Loading...

Share This Page