Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Resize option with mouse for datagridview at runtime

Posted on 2016-10-10
5
Medium Priority
?
108 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 85
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 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

596 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