Hi,
I have a grid with 2 bands and I use Outlook grouping on the 1st band (parent band).
The columns of the 1st band should have a greater width than the columns of the 2nd band.(See the attached screenshot)
But when I rezize the columns of the 2nd band, the columns of the 1st band are also resized.
PerformAutoResizeColumns(grid.DisplayLayout.Bands[0]); // 1st band PerformAutoResizeColumns(grid.DisplayLayout.Bands[1]); // 2nd band
internal void PerformAutoResizeColumns(UltraGridBand band) { foreach (UltraGridColumn column in band.Columns) column.PerformAutoResize(PerformAutoSizeType.AllRowsInBand, true); }
Is this posible and when how?
Michael
indeed, it feels like monday to me somehow :)
Yes, it works!!!
The
ultraGrid1.DisplayLayout.Override.AllowColSizing = AllowColSizing.Free;
is the right way.
Thanks
Sorry, but this fails also.
I think you want column sizing to be free, not row sizing. Try something like this, to allow the child band's column widths to be independent of the parent band's column widths:
my mistake, you have to do it for the parentband