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
Set the rowsizing of the childband to Free or AutoFree:
grid.DisplayLayout.Bands[childBand].Override.RowSizing = RowSizing.AutoFree;
Sorry, I tried it with rowsizing of the childband to Free or AutoFree.
But it doesn't work.
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