Hello friends,

I know that on the Layout options of the DataGridView control that you can set the AutoSizeColumnsMode to "Fill". I noticed that the "Fill" setting is not available for the AutoSizeRowsMode.

Does anybody know a workaround so that I can have all the rows automatically "fill" in the DataGridView?

Thanks in advance!

I got it:

int numRows = 10;

dataGridView1.RowTemplate.Height = dataGridView1.Height/numRows;

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.