• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 138
  • Last Modified:

Resize option with mouse for datagridview at runtime

Hello,
How can user resize the datagridview control at runtime  in vb.net 2015.

Cheers
0
RIAS
Asked:
RIAS
  • 3
  • 2
1 Solution
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
.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
 
RIASAuthor Commented:
Will try Scott! Cheers!
0
 
RIASAuthor Commented:
Any properties to be set on the datagridview?
0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
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
 
RIASAuthor Commented:
Cheers!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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