Tuesday, February 2, 2010

Have DataGridView Scroll Down Automatically

The trick to having a WinForm DataGridView scroll down automatically to the last row as you populate it is to use the DataGridView CurrentCell property. Just set it to a cell in the last added row.
The DataGridView also has CurrentRow property but that is read-only.

No comments:

Post a Comment