Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. How can i dock the datagridviews ?

How can i dock the datagridviews ?

Scheduled Pinned Locked Moved Visual Basic
questioncsharpcom
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    desanti
    wrote on last edited by
    #1

    Hello ! I'm using vb.net 2017 In my form I have 1 panel and 3 datagridview. The panel should be docked at the left , and this is can be done easily. I want to dock the 3 datagridview , one at the top of the form and 2 other at the bottom left and bottom right , in order that when the form is resized by width or height all the 3 datagridview should be resized. ( Please look this image :https://imgur.com/gallery/aduZ1g9 ) I've tried too many combinations setting the dock at top ,bottom ,fill , changing the Z-order but nothing worked. How can i do ? Thank you !

    L D 2 Replies Last reply
    0
    • D desanti

      Hello ! I'm using vb.net 2017 In my form I have 1 panel and 3 datagridview. The panel should be docked at the left , and this is can be done easily. I want to dock the 3 datagridview , one at the top of the form and 2 other at the bottom left and bottom right , in order that when the form is resized by width or height all the 3 datagridview should be resized. ( Please look this image :https://imgur.com/gallery/aduZ1g9 ) I've tried too many combinations setting the dock at top ,bottom ,fill , changing the Z-order but nothing worked. How can i do ? Thank you !

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Drop a panel first, dock to left. Drop another panel (!), dock to bottom. Drop DGV1 in new panel, dock to left. Drop DGV2 in new panel, dock to fill. Drop DGV3 in open space above panel, dock to fill. --edit You don't want the new panel to be recognizable as a panel; set its border to none.

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

      1 Reply Last reply
      0
      • D desanti

        Hello ! I'm using vb.net 2017 In my form I have 1 panel and 3 datagridview. The panel should be docked at the left , and this is can be done easily. I want to dock the 3 datagridview , one at the top of the form and 2 other at the bottom left and bottom right , in order that when the form is resized by width or height all the 3 datagridview should be resized. ( Please look this image :https://imgur.com/gallery/aduZ1g9 ) I've tried too many combinations setting the dock at top ,bottom ,fill , changing the Z-order but nothing worked. How can i do ? Thank you !

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        Or you could use the TableLayoutPanel. It sounds like you want two columns, one for the Panel on the left and one for the DGV's on the right, and three rows, one for each DGV. For the Panel, you can set it up so that the Panel spans three rows, while the DGV's each get there own Row in Col 1. Once that's setup, you can change the Panel and DGV's to Dock Full and they'll all take up the full space in their own cell.

        Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
        Dave Kreskowiak

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups