Have you tried this for the columns headers as well? Having the ability to have 2 lines per column would help reduce the width, and still having meaningfull column headers, instead of truncated ones…
That’s nice solution. I want to understand a little better before I try it. Basically you are setting the width via some method (properties, or code, or personalization or whatever) and the AutoFree command then sets the row height based on the text in the cell right?
Actually I just had the width set by dragging the columns in developer mode and saving it. Only the row height is being set from code. I bet you can set the column widths from code as well, but I didn’t have any need for them to dynamically change, paper stays the same size…
Otherwise yes, this is a very simple customization.
Yes, seems like it might be picky about the characters though. I would use Environment.NewLine to be sure.
I think DisplayLayout.Override.RowSizingAutoMaxLines can be used to set the max number of lines for the rows. Remember these are all just Infragistics controls in the background, so looking at the documentation for the infragistics UltraGrid can be helpful.
This worked but is there a way to set it so that the minimum row is 1 instead of the default two line height? It seems like all rows are defaulting to two rows regardless of wrapping or not. Or if this can be applied to only one column and not all column wrapping.