I'd like to change the row height of certain rows in my grid.
In InitializeRow, setting e.Row.Height does not work. In my case, it is always 20, even after assigning it a different value.
How can I make some rows have different height?
By default, all rows in the grid must be the same height. To change this, you need to set the RowSizing property to Free (or AutoFree).
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Override.RowSizing = RowSizing.Free; }
I have:
e.Layout.Bands[0].Override.RowSizing = RowSizing.Free; in _grid_InitializeLayout()
and the following in _grid_InitializeRow:
e.Row.Height = Convert.ToInt32(.5 * e.Row.Height);
e.Row.Height is 20 before and after the above line executes.
Any other ideas?