I have a splitcontainer with 2 panels. In the first panel is a Treeview and a Datagridview in the other.
When I move the splitter, to be able to see more of the treeview, the Datagridview gets 'pushed' out of the wind
You need to set the Dock
property of the control in each pane to Full
.
If you have multiple controls in a pane, you'll need to set their Dock
or Anchor
properties to achieve the behavior you want.