Anchoring – Make two components take up half of panel each

Not sure if this is what you want:

  1. Creating a SplitContainer on the screen.

    Anchor = Top, Bottom, Left, Right
    IsSplitterFixed = True (Trick)
    
  2. Creating another two datagridviews, each a side inside the SplitterContainer

    Dock = Fill
    

I generally use a TableLayoutPanel to accomplish this. It is very easy to use (a simple introduction can be found here).

You create to cells in the first row and set it to 50% width each. In each cell you put one DataGrid and you set their Dock‘ing to Fill.

Leave a Comment