Hello,
When a user clicks in between two rows, how can I autoresize the row height so that all data in each cell of the row is visible and not cut off?
For example in my snapshot below, when the user clicks in between the two rows, I want the text in column 2 (NEW YORK TEST CUSTOMER) to be displayed properly.
I have the following properties set:
grdTest.DisplayLayout.Override.RowSizing = RowSizing.Sychronized;
grdTest.DisplayLayout.Override.RowSizingArea = RowSizingArea.EntireRow;
grdTest.DisplayLayout.Override.MergedCellStyle = MergedCellStyle.OnlyWhenSorted;
Thanks!
- Zef
Hello Zef,
We are still following this forum thread. Have you been able to take a look at the provided code snippet? Please feel free to let us know if you have any questions or concerns about this matter.
You could achieve this with the following code sample:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Override.CellMultiLine = Infragistics.Win.DefaultableBoolean.True; e.Layout.Override.RowSizing = Infragistics.Win.UltraWinGrid.RowSizing.AutoFree; }
You could play with the 'RowSizing' property, it is the essential one in this case.