Version

Scrolling a Row into View

If you need to scroll a particular row to the top of WinGrid™, you can set the FirstRow property to the desired row.

To scroll the 22nd row to the top of WinGrid, place the following example code in an event handler such as a button’s Click event.

In Visual Basic:

Me.UltraGrid1.DisplayLayout.RowScrollRegions(0).FirstRow = Me.UltraGrid1.DisplayLayout.Rows(21)

In C#:

this.ultraGrid1.DisplayLayout.RowScrollRegions[0].FirstRow = this.ultraGrid1.DisplayLayout.Rows[21];