C# – Hide and show a cell of the TableLayoutPanel

ctablelayoutpanelwinforms

My tablelayout panel has one column and three rows. (one docked to Fill panel in each cell.)

Now I would like to be able to hide/show the rows . I want only one row to be visible at any time ( based on a user selection of some radio buttons) and I want to to get resized so it fills all the area of the TableLayoutPanel.

How can I do that? Any thoughts?

Best Answer

If rows in your TableLayoutPanel is autosized then hiding content panel will hide cell where panel placed too.

Related Topic