3
Answers

Filtered Dataview Row

Ron

Ron

12y
1.3k
1
I am able to determine the selected data row of a listview with this code:

DataRow dr;
dr = dtMyDataTable.Rows[lvwMyListView.SelectedIndex];

However, when I apply a filter using a Dataview (which is working properly), I lose the ability to determine which row is selected. The selectedIndex is insisting that the index is still that of the unfiltered view.

What's up with that?



Answers (3)
Next Recommended Forum