Hide and show a cell of the TableLayoutPanel

Bohn picture Bohn · Jul 20, 2010 · Viewed 46k times · Source

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?

Answer

arbiter picture arbiter · Jul 20, 2010

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