Solved

Resize option with mouse for datagridview at runtime

Posted on 2016-10-10
5
55 Views
Last Modified: 2016-10-11
Hello,
How can user resize the datagridview control at runtime  in vb.net 2015.

Cheers
0
Comment
Question by:RIAS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 84
ID: 41838206
.NET has the Split Container control, which allows for end user resizing. I use it regularly in my projects, and it does a pretty good job of allowing the user to resize portions of the application to suit the own requirements and screen sizes.
1
 

Author Comment

by:RIAS
ID: 41838223
Will try Scott! Cheers!
0
 

Author Comment

by:RIAS
ID: 41838225
Any properties to be set on the datagridview?
0
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 41838290
I set my DGV to "Fill" for the Dock property. This immediately auto-sizes it with that Split Container. If you don't want to do that, you can set the Anchor properties of the DGV as appropriate.
1
 

Author Closing Comment

by:RIAS
ID: 41838321
Cheers!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ASP.NET Built-In Report Creator / Viewer 5 39
CHANGE FORM TEXT BEFORE IT SHOW TO USER 13 31
FTP recursive download files 5 24
How do I "share" on social sites? 2 34
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

738 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