Solved

Help with autosize of dataGridView

Posted on 2016-09-18
4
28 Views
Last Modified: 2016-09-19
Hi,

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

Thanks,

Victor
0
Comment
Question by:vcharles
  • 2
4 Comments
 
LVL 62

Accepted Solution

by:
Fernando Soto earned 500 total points
ID: 41804148
Hi Victor;

I believe you can use DataGridView.RowCount to show that many rows.
0
 
LVL 18

Expert Comment

by:Pawan Kumar Khowal
ID: 41804171
Put datagrid in a div or table and use height as 100%
0
 

Author Comment

by:vcharles
ID: 41804207
Hi Fernando,

It works with DataGridView.RowCount * 25

Thanks

Pawan Thanks for your comment.

Victor
0
 
LVL 62

Expert Comment

by:Fernando Soto
ID: 41804582
Not a problem Victor, glad to help.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now