0

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!

1
Contributor
1
Reply
6
Views
8 Years
Discussion Span
Last Post by arelius
0

I got it:

int numRows = 10;

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.