Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 116
  • 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

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

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