This documentation is archived and is not being maintained.
TableLayoutPanelGrowStyle Enumeration
Visual Studio 2010
Specifies how a TableLayoutPanel will gain additional rows or columns after its existing cells are full.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Member name | Description | |
|---|---|---|
| FixedSize | The TableLayoutPanel does not allow additional rows or columns after it is full. | |
| AddRows | The TableLayoutPanel gains additional rows after it is full. | |
| AddColumns | The TableLayoutPanel gains additional columns after it is full. |
If all the cells in the TableLayoutPanel are filled and the GrowStyle property is set to FixedSize, an attempt to add another control will throw an exception.
The following example shows how to use TableLayoutPanelGrowStyle to set the GrowStyle property on a TableLayoutPanel control. This code example is part of a larger example provided for the TableLayoutPanel control.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: