views:

202

answers:

1

Hi folks, i have a datagrid that displays long text on couple columns. I have set the cells defaultcellstyle to wrap. This works but now the row height doesn't change to compensate for the wrapped text & the text is getting cut-off.

What am i missing?

TIA

+2  A: 

Set the DataGridView.AutoSizeRowsMode to AllCells or DisplayedCells and it is done automatically. More information about the various sizing options is available in this MSDN Library article.

Hans Passant
perfect! exactly what i was looking for. Thanks Hans.
SoftwareGeek