Hello,
Is it possible to set the cell height in the run time only on selected row?
For example by using RowLayoutColumnInfo.PreferredCellSize?
Because as I use this property it does change the cell height but for all the rows and I need to change it only on currently selected row.
Thanks you,
s
Thank you for your reply.
I am setting RowSizing to Free and then:
Private Sub ultragrid_AfterSelectChange(sender As System.Object, e As Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs) Handles ultragrid.AfterSelectChange
Dim grid As UltraGrid = CType(sender, UltraGrid) Dim activerow As UltraGridRow = grid.ActiveRow activerow.Cells("ColumnName").Column.RowLayoutColumnInfo.PreferredCellSize = New Size(0, 100)
End Sub
But still the cell is re sizing in all the rows.
What am I doing wrong?
Thank you,
Dear sal_om_ea,
It is possible to set the cell height only on a selected row.
Please use the Override property - RowSizing and set the value to Free. Ex. In the form_load or afterRowActivate event type the following line of code:
//this.ultragrid.DisplayLayout.Override.RowSizing = RowSizing.Free;
Once this property value is set to free, any height you have set to the ActiveRow will be implemented, and all the other rows will be set to the default height.
Please let me know if this helps and/or have any additional questions about this matter.
Sincerely,
Michael Di FilippoDeveloper Support EngineerInfragistics, Inc.www.infragistics.com/support