How can I change the row height of a DataGridView?
I set the value for the property but height doesn't change. Any other property has to be checked before setting this one.
You need to set the Height
property of the RowTemplate:
var dgv = new DataGridView(); dgv.RowTemplate.Height = 30;
You can set the row height by code
dataGridView.RowTemplate.Height = 35;
or by property panel
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