怎样一个DataGridView定位到特定的行(以使所选择的行是在顶部)是在、DataGridView

2023-09-03 03:13:29 作者:Oxygen(氧)

我有在其上一个DataGridView一个应用程序,我希望定位的行,使得一个特定行位于列表的顶端。

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.

我不希望有一个排序,我想以编程方式告诉DataGridView的滚动到第N行。

I don't want a sort, I want a way to programmatically tell the DataGridView "scroll to the Nth row."

任何想法?

推荐答案

如何FirstDisplayedScrollingRowIndex?