Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Correct result wrap in dataGridView

I am using the DataGridView and Wrap="True".

But when I type in text into the DataGridView. Text goes up inside the cell. But I want the whole row from the DataGridView to come down automatically.

Incorrect result:

enter image description here

The correct result:

enter image description here

What's the solution?

like image 657
maktab Avatar asked Jun 08 '26 22:06

maktab


1 Answers

You have to set

AutoSizeRowsMode = DisplayedCell

and

RowDefaultCellStyle: WrapText=True

like image 143
hriziya Avatar answered Jun 11 '26 10:06

hriziya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!