Version

Scrolling One Row at a Time

You can scroll WinGrid™’s data one row at a time using the PerformAction method. In order to scroll up or down in WinGrid one row at a time, pass the AboveRow or BelowRow values of the UltraGridAction enumeration to the PerformAction method.

Note
Note
AboveRow and BelowRow will only Activate rows in the same band. If you need to scroll between bands, you can use the PrevRow and NextRow values off the same enumeration.

Place the following example code within an appropriate event handler, such as a button’s Click event to scroll upwards.

In Visual Basic:

Me.UltraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.AboveRow)

In C#:

this.ultraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.AboveRow);