3
Answers

Filtered Dataview Row

Photo of Ron

Ron

13y
1.7k
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)