Version

Scroll Method (ColScrollRegion)

Scrolls a scrolling region by the specified increment.
Syntax
'Declaration
 
Public Sub Scroll( _
   ByVal action As ColScrollAction _
) 
public void Scroll( 
   ColScrollAction action
)

Parameters

action
The ColScrollAction to perform
Remarks

Invoke this method to scroll a scrolling region.

When a colscrollregion is scrolled, the value of the colscrollregion's Position property changes and the BeforeColRegionScroll event is generated

The ScrollCellIntoView, ScrollColIntoView, ScrollGroupIntoView, ScrollHeaderIntoView and ScrollRowIntoView methods can be invoked to scroll an object into a scrolling region's viewable area.

Example
Following code scrolls the active row-scroll-region one page down and active col-scroll-region one line to the right.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button134_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button134.Click

      ' Scroll one page down.
      Me.UltraGrid1.ActiveRowScrollRegion.Scroll(RowScrollAction.PageDown)

      ' Scroll one line to the right.
      Me.UltraGrid1.ActiveColScrollRegion.Scroll(ColScrollAction.LineRight)

  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void button134_Click(object sender, System.EventArgs e)
{

	// Scroll one page down.
	this.ultraGrid1.ActiveRowScrollRegion.Scroll( RowScrollAction.PageDown );

	// Scroll one line to the right.
	this.ultraGrid1.ActiveColScrollRegion.Scroll( ColScrollAction.LineRight );

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also