Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 39
  • Last Modified:

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
0
vcharles
Asked:
vcharles
  • 2
1 Solution
 
Fernando SotoCommented:
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 SotoCommented:
Not a problem Victor, glad to help.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now