Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

DataGridView can't scroll to newly entered row

$
0
0

Hello everyone!

So I am attempting to, when a row is inserted into my datagridview, scroll down to that row so that the row is in view. To give you some context, the dgv is having rows entered using a usb barcode scanner. Since the form is on a tablet, we quickly begin to run out of room to display all the rows on the dgv as they are inserted. What I am wanting to do is have the newly inserted item be always visible at the bottom (AKA always scroll to the bottom of the dgv).

I have attempted to do this using dgv.FirstDisplayedScrollingRowIndex, but it doesn't seem to work.

Also, this may not affect anything, but this is all happening behind a modal form.

Thanks for the help!


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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