2
我是使用Xceed Grid for .NET的新手。在.NET中有设置焦点,但不在Xceed上。你能帮我解释一下吗?如何将焦点设置为Xceed Grid for .NET中的特定行
我是使用Xceed Grid for .NET的新手。在.NET中有设置焦点,但不在Xceed上。你能帮我解释一下吗?如何将焦点设置为Xceed Grid for .NET中的特定行
你可以做到以下几点:
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将在GridControl视图的顶部有DataRow。