Changing datagridview row height using rowtemplate but not working

I have a DataGridView with two column member names and a member image.

I want to increase the height of each row in a DataGridView .

I set the value of the property, but the height does not change; any other property also noted by me is indicated below.

I tried this to change, but did not change the row height of the DataGridView ...

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

can anyone help with this?

+4
source share
2 answers

Bind the data or set the gridview data source after setting dgv.RowTemplate.Height if the data is already loaded into the grid permutation data that sets the property above.

+3
source

I want to increase the height of each row

During development or software?

If during development:

In the DataGridView properties, find the RowTemplate property;

click the arrow to the right of the RowTemplate, show more details;

edit the Height property.

0
source

All Articles