Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

List View Selected Item Not Scrolling To Selected Row

$
0
0
I have a list view (details)  I am displaying this list by setting it to a data set.  I have a a move up and down order button where I update the order of the row in the database. Then I clear the list and reload the list view with the new dataset.  I then go and use the listview focus, refresh, and Items[row#].Selected = True.  I have also tried selectedIndices.add  but all they do is highlight the line.  However since my list is is long it doesnt scroll down to the highlighted line.  If I use the arrow keys and hit the down arrow it goes to row 2 since its focus'ed on row 1 but highlighted the row I selected.  How do I get my list view to scroll down to the selected row?

Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>