The UltraGrid has the ability to show ExpansionIndicators at the header of each child band. This improves the user’s ability to navigate between sibling bands with large data sets within the same parent band.
The following screenshot demonstrates a child band collapsed, allowing for easier navigation to sibling bands and reduction of information clutter.
It is best to set layout properties through the UltraGrid.InitializeLayout event to ensure that the layout is persisted whenever data is bound to the grid.
Create a WinGrid bound to a hierarchical data source with sibling child bands.
Set the Layout.BandExpansionIndicators property to ShowOnChildBand.
The following code snippet demonstrates how to set the property through an InitializeLayout event handler.
In Visual Basic:
Private Sub UltraGrid1_IniializeLayout(sender As Object, e As InitializeLayoutEventArgs)
e.Layout.BandExpansionIndicators = BandExpansionIndicators.ShowOnChildBands
End Sub
In C#:
private void UltraGrid1_IniializeLayout(object sender, InitializeLayoutEventArgs e)
{
e.Layout.BandExpansionIndicators = BandExpansionIndicators.ShowOnChildBands;
}