Hi All,
I'm using multi-band on a grid. There is about 50 bands in the grid. Actually data source is a self-linked dataTable, so every band has the same columns.
I like the default behavior to keep all columns align, however I don't want the first column has a great width.
so I set AllowColSizing = AllowColSizing.Free. But the columns between bands are getting mis-aligned. I have tried to set Band.Indentation = 0, then the ExpansionIndicator got hidden.
Is there a method to move the ExpansionIndicator to the rowSelector's place?, I don't care about rowSelector, Or there are any other method for this.
Regards.
Hi,
I am unclear on what you want, then. If the columns are lined up and the bands are indented, then there is no way that the first column must be large enough to encompass the lowest-level band's first column. If it did not, then why would not line up - it's a logical contradiction.
If you hide the expansion indicators and set the band's indentation to true, you could call the ExpandAll method to start off with all rows expanded.
Hi Mike,
I just want all the columns to line up and the first column not to get larger. As in my post, I have tried to set the band.Indentation = 0 in InitializedLayout event, this won't help. The ExpansionIndicator got hidden, that is to say you couldn't expand row to see its child rows. The lower band's ExpansionIndicator could not appear on the same "column" as its parent band.
In order for the columns to line up and the first column not to get larger, the bands would have to not be indented at all. That doesn't really have anything to do with the RowSelectors or the ExpansionIndicators.
What you can do is loop through the bands and set the Indentation property on each band to 0. I'd recommend doing this in the InitializeLayout event of the grid.
This won't help with what you are asking, but just so you know, you can use grid.DisplayLayout.Override.RowSelectors property to turn off the RowSelectors. And you can use grid.DisplayLayout.Override.ExpansionIndicator to turn off ExpansionIndicators.