Column text wrapping and column resizing
If the column.Appearance.CellTextSettings.Wrapping is set to true, what is the suggested method to resize the row height if a column is resized?
I currently set the row height to the cell's optimal height when the data is first updated, but if I resize a column, the height of the row does not adjust if the number of wrapped lines increases or decreases.
0
-
Hi Cory,
Below you will find a code, demonstrating how to do it:
//Subscribe to column width changes
grid.ColumnWidthChanged += delegate
{
//Adjust each row height in the grid
foreach (Row row in grid.Rows)
{
row.Adjust();
}
};Best regards,
The Dapfor Team
0
Please sign in to leave a comment.
Comments
1 comment