如何将 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屋!
查看全文