Version

Creating Scrolling Region in Row or Column

By default, the WinGrid™ starts out with one ColScrollRegion and one RowScrollRegion .

To create a new ColScrollRegion or RowScrollRegion:

To create a new RowScrollRegion or ColScrollRegion, you must use the Split method on an existing region. You can optionally specify the starting position of the new region.

In Visual Basic:

Me.UltraGrid1.DisplayLayout.ColScrollRegions(0).Split(0)
Me.UltraGrid1.DisplayLayout.RowScrollRegions(0).Split(200)

In C#:

this.ultraGrid1.DisplayLayout.ColScrollRegions[0].Split(0);
this.ultraGrid1.DisplayLayout.RowScrollRegions[0].Split(200);

Specifying a value will create a new region at the specified point within the region. (The value specified must not be greater than the current width or height of the region.) Specifying 0 (or nothing) for the extent of the new region will split the existing region in half.

The following is a snapshot displaying WinGrid with split scroll regions.

create a scrolling region in a row or column