Datagrid Sorting Edit Index

J

JDP@Work

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.....
 

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
474,266
Messages
2,571,083
Members
48,773
Latest member
Kaybee

Latest Threads

Top