I am new to using Xceed Grid for .NET. There is set focus in .NET but not on Xceed. Can you please help me how to get the same ?
Asked
Active
Viewed 2,404 times
1 Answers
3
You can do the following:
this.gridControl1.CurrentRow = this.gridControl1.DataRows[100];
this.gridControl1.CurrentRow.BringIntoView();
this.gridControl1.FirstVisibleRow = this.gridControl1.CurrentRow;
this.gridControl1.SelectedRows.Add(this.gridControl1.CurrentRow);
Calling the BringIntoView on the DataRow will let the GridControl scroll all the way to where the DataRow is located. Setting the FirstVisibleRow on the GridControl to your CurrentRow will have the DataRow at the top of the GridControl's view.

Nerd in Training
- 2,098
- 1
- 22
- 44