--- title: "TableLayoutPanel Control Overview" ms.date: "03/30/2017" f1_keywords: - "TableLayoutPanel" helpviewer_keywords: - "controls [Windows Forms], resizing" - "resizable controls [Windows Forms]" - "Windows Forms controls, proportional resizing" - "Windows Forms, proportional resizing of controls" - "layout [Windows Forms], TableLayoutPanel control" - "TableLayoutPanel control [Windows Forms], about TableLayoutPanel control" ms.assetid: 337661c8-61cb-44ee-93e0-3662bddec327 --- # TableLayoutPanel Control Overview The control arranges its contents in a grid. Because the layout is performed both at design time and run time, it can change dynamically as the application environment changes. This gives the controls in the panel the ability to proportionally resize, so they can respond to changes such as the parent control resizing or text length changing due to localization. Any Windows Forms control can be a child of the control, including other instances of . This allows you to construct sophisticated layouts that adapt to changes at run time. The control can expand to accommodate new controls when they are added, depending on the value of the , , and properties. Setting either the or property to a value of 0 specifies that the will be unbound in the corresponding direction. You can also control the direction of expansion (horizontal or vertical) after the control is full of child controls. By default, the control expands downward by adding rows. If you want rows and columns that behave differently from the default behavior, you can control the properties of rows and columns by using the and properties. You can set the properties of rows or columns individually. The control adds the following properties to its child controls: `Cell`, `Column`, `Row`, `ColumnSpan`, and `RowSpan`. You can merge cells in the control by setting the `ColumnSpan` or `RowSpan` properties on a child control. 1. [How to: Align and Stretch a Control in a TableLayoutPanel Control](how-to-align-and-stretch-a-control-in-a-tablelayoutpanel-control.md) 2. [How to: Span Rows and Columns in a TableLayoutPanel Control](how-to-span-rows-and-columns-in-a-tablelayoutpanel-control.md) 3. [How to: Edit Columns and Rows in a TableLayoutPanel Control](how-to-edit-columns-and-rows-in-a-tablelayoutpanel-control.md) 4. [Walkthrough: Arranging Controls on Windows Forms Using a TableLayoutPanel](walkthrough-arranging-controls-on-windows-forms-using-a-tablelayoutpanel.md) ## See also - - - [How to: Design a Windows Forms Layout that Responds Well to Localization](how-to-design-a-windows-forms-layout-that-responds-well-to-localization.md) - [How to: Create a Resizable Windows Form for Data Entry](how-to-create-a-resizable-windows-form-for-data-entry.md) - [Best Practices for the TableLayoutPanel Control](best-practices-for-the-tablelayoutpanel-control.md)