gpt4 book ai didi

.net - 如何将焦点设置到 Xceed Grid for .NET 中的特定行

转载 作者:行者123 更新时间:2023-12-04 06:15:28 26 4
gpt4 key购买 nike

我是使用 Xceed Grid for .NET 的新手。 .NET 有重点,但 Xceed 没有。你能帮我如何得到相同的吗?

最佳答案

您可以执行以下操作:

this.gridControl1.CurrentRow = this.gridControl1.DataRows[100];
this.gridControl1.CurrentRow.BringIntoView();
this.gridControl1.FirstVisibleRow = this.gridControl1.CurrentRow;
this.gridControl1.SelectedRows.Add(this.gridControl1.CurrentRow);

调用 DataRow 上的 BringIntoView 将使 GridControl 一直滚动到 DataRow 所在的位置。将 GridControl 上的 FirstVisibleRow 设置为 CurrentRow 将使 DataRow 位于 GridControl View 的顶部。

关于.net - 如何将焦点设置到 Xceed Grid for .NET 中的特定行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7317518/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com