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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With