Solved

Resize option with mouse for datagridview at runtime

Posted on 2016-10-10
5
32 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
  • 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 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

13 Experts available now in Live!

Get 1:1 Help Now