I have a panel containing a DataGridView and 3 buttons at the bottom of a form. I want to add the possibility to expand and collapse this panel. Is there a way to do it in a
An alternative to using the SplitContainer collapse is to:
Dock the panel, to where you would like it, and then change it's Visible
property to show/hide it. This way other docked items will move to fill the space when it's invisible (depending on their Dock setting).
For example, if the button, panel, and a label are all docked to the top (in that order) when you hide the panel the label will shift up to underneath the button.