Infragistics(R) NetAdvantage(R) Windows Forms
ColScrollAction Enumeration
Example  See Also  E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace : ColScrollAction Enumeration

Enum to specify how to scroll a column scroll region.

Syntax

Visual Basic (Declaration) 
Public Enum ColScrollAction 
   Inherits System.Enum
C# 
public enum ColScrollAction : System.Enum 

Members

MemberDescription
Left scroll all the way to the left
LineLeft scroll as if left arrow of the scroll bar was cliked
LineRight scroll as if right arrow of the scroll bar was clicked
PageLeft scroll one page to the left
PageRight scroll one page to the right
Right scroll all the way to the right

Example

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

Visual BasicCopy Code
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
C#Copy Code
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 );

}

Remarks

The ColScrollAction enum is used for specifying what kind of scroll action should be performed when calling ColScrollRegion.Scroll method.

See Also