DataGridView can't scroll to newly entered row

  • Thread starter Thread starter Castor_RG
  • Start date Start date
C

Castor_RG

Guest
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 doesnt seem to work.


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


Thanks for the help!

Continue reading...
 
Back
Top