|
Hi,
I have 3 datagridviews on a form (one is docked to top, the next is docked to top so it's below the first and the third is docked Fill), when the form loads each datagridview can have a variable amount of rows. After I've added the rows how do I get the first two datagridviews to increase or decrease in height so that either a scrollbar isn't visible or there's no whitespace below the datagridview?
I've tried setting the height like so e.g. dataGridView1.height = number of rows * row height; but the height doesn't change.
Any help would be greatly appreciated. ro88o
|