The code below which I found on MSN did not worked to automatically word-wrap a cell:
dataGridView.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells; dataGridView.Columns[0].DefaultCellStyle.WrapMode = DataGridViewTriState.True;
Any more answer?
You also need to set DataGridView.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells
(along with what you have done) for word-wrap to work.
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