Infragistics(R) NetAdvantage(R) Windows Forms
IndentationGroupByRowExpansionIndicator Property
See Also  Example E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace > UltraGridBand Class : IndentationGroupByRowExpansionIndicator Property

Gets/sets the number of pixels that the expansion indicators in the band's groupby rows will be offset. The default value is -1, which means that the grid will determine the offset.

Syntax

Visual Basic (Declaration) 
Public Property IndentationGroupByRowExpansionIndicator As Integer
C# 
public int IndentationGroupByRowExpansionIndicator {get; set;}

Example

This snippet demonstrates the IndentationGroupByRow and IndentationGroupByRowExpansionIndicator properties on the UltraGridBand class.

Visual BasicCopy Code
Private Sub Form1_Load(sender As Object, e As System.EventArgs)
   ' Make all of the GroupBy rows in the first band flush against the left edge of the grid.
   '
   Me.ultraGrid1.DisplayLayout.Bands(0).IndentationGroupByRow = 0
   
   ' Since the IndentationGroupByRow property is set to zero, there needs to be a way to
   ' depict the nested relationships between the GroupBy rows.  Setting this property will
   ' cause the expansion indicator offsets to accumulate as the nesting depth-level increases,
   ' which will produce the desired result.  Note, this "accumulation" of expansion indicator 
   ' offsets only occurs when the IndentationGroupByRow is set to 0. Normally the expansion
   ' indicator offset does not accumulate but remains a fixed value across all GroupBy rows.
   '
   Me.ultraGrid1.DisplayLayout.Bands(0).IndentationGroupByRowExpansionIndicator = 26
End Sub
C#Copy Code
private void Form1_Load(object sender, System.EventArgs e)
{	
	// Make all of the GroupBy rows in the first band flush against the left edge of the grid.
	//
	this.ultraGrid1.DisplayLayout.Bands[0].IndentationGroupByRow = 0;

	// Since the IndentationGroupByRow property is set to zero, there needs to be a way to
	// depict the nested relationships between the GroupBy rows.  Setting this property will
	// cause the expansion indicator offsets to accumulate as the nesting depth-level increases,
	// which will produce the desired result.  Note, this "accumulation" of expansion indicator 
	// offsets only occurs when the IndentationGroupByRow is set to 0. Normally the expansion
	// indicator offset does not accumulate but remains a fixed value across all GroupBy rows.
	//
	this.ultraGrid1.DisplayLayout.Bands[0].IndentationGroupByRowExpansionIndicator = 26;
}

Remarks

You can use the IndentationGroupByRowExpansionIndicator property to specify how much indenting should be applied to the expansion indicators in the GroupBy rows of a band. The default value for this property is -1, which indicates that the grid's default indenting should be used.

Note: If the IndentationGroupByRow property is set to 0 then the left edge of all the GroupBy rows in the band will be at the same X coordinate. In this situation the grid automatically determines the location of the expansion indicators in each GroupBy row such that the relationships between the groupings are visually represented via the relative location of said expansion indicators. The indentation of the GroupBy row expansion indicators is, in this case, a function of a GroupBy row's "depth level" and the IndentationGroupByRowExpansionIndicator value of that GroupBy row's respective band.

See Also