How do I position a DataGridView to a specific row (so that the selected row is at the top)

后端 未结 2 1379
清歌不尽
清歌不尽 2021-01-07 22:42

I have an application with a DataGridView on it and I would like to position the rows such that a specific row is at the top of the list.

I don\'t want a sort, I wan

相关标签:
2条回答
  • 2021-01-07 23:19

    How about FirstDisplayedScrollingRowIndex?

    0 讨论(0)
  • 2021-01-07 23:27

    The DataGridView has a property called: FirstDisplayedScrollingRowIndex. Set that, and the row will then be at the top of the list.

    0 讨论(0)
提交回复
热议问题