Autosize Row in DataGrid -
02-03-2008
, 02:49 PM
Hi Everyone,
I'm filling a datagrid and want the row height to automatically resize
according to the content. This works fine if I use:
DataGridViewAutoSizeRowsMode.ALLCELLS
However if the datagrid has a large number of rows, it takes ages to
autosize. So I switched to .DISPLAYEDCELLS. Works fine until the user
scrolls the grid. To catch this, I added the same line to the DataGrid
Scroll event. The event fires, but the new rows are not resized.
Does anyone know how to solve this one?
Best regards,
Robert Bevington |