Changing the row height of a datagridview

karthik picture karthik · Jul 30, 2010 · Viewed 133.9k times · Source

How can I change the row height of a DataGridView?

i set the value for the property but height doesnt changed,anyother property has to be checked before set this one

Answer

Rob picture Rob · Jul 30, 2010

You need to set the Height property of the RowTemplate:

var dgv = new DataGridView();
dgv.RowTemplate.Height = 30;