Hi,
I have two rows in the root collection of my grid. Due to some layout requirements I have to adjust the row height to the same row height as another grid has.
If I set the row height of grid.Rows[0] = 32, the row height of the second row also changes. The AfterRowResize-Event will only be called for the row I change the height, but the height of both rows has changed.
It looks like a bug, or do I something wrong here? The grid is bound to a UltraDataSource. I'm using version 11.1.2011.2030.
Regards
Markus
I have figured out something:
If I set RowSizing = Free on a band overrides, I can not change individual row height. If I set it to the whole grid it works:
e.Layout.Override.RowSizingArea = RowSizingArea.EntireRow;
e.Layout.Override.RowSizing = RowSizing.Free;
e.Layout.Override.CellMultiLine = DefaultableBoolean.True;
Setting at the global override, setting individual row height in band[0] or band[2] works, otherwise not.
This looks strange. Do I missunderstood something?
The setting on the Band Override should take precedence over the Layout Override. So if you are saying that setting RowSizing to Free on the Band Override does not allow you to set the height of a single row, then something is wrong.
I tried this out and it works fine for me either way. Both of these work.
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridBand band = layout.Bands[0]; band.Override.RowSizing = RowSizing.Free; }
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridOverride ov = layout.Override; ov.RowSizing = RowSizing.Free; }