Ron

Ron

  • NA
  • 44
  • 64.4k

Filtered Dataview Row

May 17 2012 12:48 PM
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)