如何将DataGridView定位到特定行(以便所选行位于顶部) [英] How do I position a DataGridView to a specific row (so that the selected row is at the top)
本文介绍了如何将DataGridView定位到特定行(以便所选行位于顶部)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个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
?
这篇关于如何将DataGridView定位到特定行(以便所选行位于顶部)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文