tags:

views:

13

answers:

2

Hi,

I have gridview with few hundreds rows, how can I force the gridview to extend it's hight and display all rows without scroolbar?

C# 3.0 / .net 3.5 /

A: 

You want display all the handreds rows without scrrolbar. you must change the height of the GridView when you load data.

DataGridView.Height= xxx
Load data
Achraf
@Achraf: How to find the height in this case?
Kangkan
A: 

The DataGridView has several things which could help you to calculate the height:

But i would be really interested on which display resolution you display a few hundred rows without scrolling.

Last but not least (nor tested): Take a look into the properties AutoSize and AutoSizeMode

Oliver