Version

ScrollColIntoView(UltraGridColumn) Method

Scrolls the specified column into view for a colscrollregion.
Syntax
'Declaration
 
Public Overloads Sub ScrollColIntoView( _
   ByVal column As UltraGridColumn _
) 
public void ScrollColIntoView( 
   UltraGridColumn column
)

Parameters

column
Remarks

Invoke this method to ensure that a column is viewable in a column scrolling region.

If the column is already in the viewable area of the column scrolling region, this method does not perform any scrolling.

If the colscrollregion is scrolled as a result of invoking this method, the value of the column scrolling region's Position property changes and the BeforeColRegionScroll event is generated.

The Scroll, ScrollCellIntoView, ScrollGroupIntoView and ScrollHeaderIntoView methods can also be invoked to scroll an object into a colscrollregion's viewable area.

Example
Following code shows how to scroll a column into view in a col-scroll-region. NOTE: This does not scroll vertically. It only scrolls horozontally.

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

  Private Sub Button133_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button133.Click

      ' Get a column to scroll into view.
      Dim column As UltraGridColumn = Me.UltraGrid1.DisplayLayout.Bands(0).Columns("Fax")

      ' Call ScrollColIntoView. Pass true for the leftAlign to scroll the column as much to
      ' the left as possible.
      Me.UltraGrid1.ActiveColScrollRegion.ScrollColIntoView(column, True)

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

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

	// Get a column to scroll into view.
	UltraGridColumn column = this.ultraGrid1.DisplayLayout.Bands[0].Columns["Fax"];

	// Call ScrollColIntoView. Pass true for the leftAlign to scroll the column as much to
	// the left as possible.
	this.ultraGrid1.ActiveColScrollRegion.ScrollColIntoView( column, true );

}
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