// you’re reading...

Techno-Babble

ListView: Using DisplayIndex when Paging

Just learned that you need to use a row’s DisplayIndex rather than its DataItemIndex when retrieving its DataKey value.  Otherwise, stuff is not going to work with paging.

Not obvious.  But I guess it makes sense.  

DataItemIndex is the index of the row within the overall data set.  DisplayIndex is the index of the row within the currently displayed set of rows, and it is what the DataKeys are indexed to.

Discussion

No comments for “ListView: Using DisplayIndex when Paging”

Post a comment