Version

VisiblePosition Property (UltraGridBand)

Determines the position of the band relative to its siblings.
Syntax
'Declaration
 
Public Property VisiblePosition As Integer
public int VisiblePosition {get; set;}
Remarks

The VisiblePosition property determines the order in which sibling bands are displayed relative to each other. The band with the lowest VisiblePosition will be displayed first and then it's siblings will be displayed in ascending numeric order. If two bands have the same VisiblePosition, then the order will be determined by the Index of the bands in the UltraGridLayout.Bands collection.

When RowLayoutStyle is not set to None, the VisiblePosition property will be overridden by the column’s RowLayoutColumnInfo.OriginX property. If the OriginX is not set, it will be resolved relative to the other columns in the band or group based on the VisiblePosition of the column.

Example
The following code snippet illustrates how to control the order in which sibling bands appear. In this particular example, the visible position of the bands are reversed.

Dim bands As BandsCollection = Me.ultraGrid1.DisplayLayout.Bands 
bands("Child 3").VisiblePosition = 0 
bands("Child 2").VisiblePosition = 1 
bands("Child 1").VisiblePosition = 2
BandsCollection bands = this.ultraGrid1.DisplayLayout.Bands;
bands["Child 3"].VisiblePosition = 0;
bands["Child 2"].VisiblePosition = 1;
bands["Child 1"].VisiblePosition = 2;
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