954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

DataGridView AutoSizeRowsMode Fill ?

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!

arelius
Light Poster
28 posts since Jul 2009
Reputation Points: 10
Solved Threads: 0
 

I got it:

int numRows = 10;

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

arelius
Light Poster
28 posts since Jul 2009
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: