Help with autosize of dataGridView

Hi,

How do you adjust the height of  the DatagridView depending on the number of records using VB.NET?

Thanks,

Victor
vcharlesAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Fernando SotoConnect With a Mentor RetiredCommented:
Hi Victor;

I believe you can use DataGridView.RowCount to show that many rows.
0
 
Pawan KumarDatabase ExpertCommented:
Put datagrid in a div or table and use height as 100%
0
 
vcharlesAuthor Commented:
Hi Fernando,

It works with DataGridView.RowCount * 25

Thanks

Pawan Thanks for your comment.

Victor
0
 
Fernando SotoRetiredCommented:
Not a problem Victor, glad to help.
0
All Courses

From novice to tech pro — start learning today.