We are trying to use the WinGrid with two bands. The second band will always be shown, so there is no need to show the expansion indicator at the left of the parent row.
In the Override section, the ExpansionIndicator property can be set to Never and this removes the indicator as expected. After populating the grid with data we call Grid.Rows.ExpandAll to expand all the rows. However we are now left with whitespace gap between the edge of the grid and the row selectors where the indicator used to be.
Is there a way to remove this whitespace and realign the grid? We are using Infragistics 2006 volume 1, so it may be possible to do this only in a newer release.
Try using the Indentation property on each band, i.e.:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e){ e.Layout.Bands[0].Indentation = 0; e.Layout.Bands[1].Indentation = 10;}
-Matt
That did the trick.
What was confusing is that I had set the Indentation to zero on both bands. However, whatever adds the second band must add onto this Indentation. The InitializeLayout then allows me to set it back after this.
Thanks for the prompt response!