Version

GroupByRowInitialExpansionState Property

Gets/sets the value which determines if the GroupBy rows will all be collapsed or expanded when a band groups on a column.
Syntax
'Declaration
 
Public Property GroupByRowInitialExpansionState As GroupByRowInitialExpansionState
public GroupByRowInitialExpansionState GroupByRowInitialExpansionState {get; set;}
Example
This snippet demonstrates the GroupByRowExpansionStyle and GroupByRowInitialExpansionState properties on the UltraGridOverride class. These properties can be used to customize the way that users can expand GroupBy rows and whether GroupBy rows are initially expanded or collapsed.

Imports Infragistics.Win.UltraWinGrid

Sub Form1_Load(sender As Object, e As System.EventArgs)
   ' Prevent expansion indicators from appearing in the GroupBy rows.  The end-user can 
   ' still expand the GroupBy rows via double-clicking or the keyboard.
   '
   Me.ultraGrid1.DisplayLayout.Override.GroupByRowExpansionStyle = GroupByRowExpansionStyle.DoubleClick
   
   ' Make it so that the GroupBy rows will automatically be expanded when a column is grouped.
   '
   Me.ultraGrid1.DisplayLayout.Override.GroupByRowInitialExpansionState = GroupByRowInitialExpansionState.Expanded
End Sub
using Infragistics.Win.UltraWinGrid;

private void Form1_Load(object sender, System.EventArgs e)
{	
	// Prevent expansion indicators from appearing in the GroupBy rows.  The end-user can 
	// still expand the GroupBy rows via double-clicking or the keyboard.
	//
	this.ultraGrid1.DisplayLayout.Override.GroupByRowExpansionStyle = GroupByRowExpansionStyle.DoubleClick;

	// Make it so that the GroupBy rows will automatically be expanded when a column is grouped.
	//
	this.ultraGrid1.DisplayLayout.Override.GroupByRowInitialExpansionState = GroupByRowInitialExpansionState.Expanded;
}
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