'Declaration Public Enum ColumnAutoSizeFlags Inherits System.Enum
public enum ColumnAutoSizeFlags : System.Enum
Member | Description |
---|---|
AllCells | The string representation of each cell's value is measured, and the width of the column is set to accommodate the largest value. If the cell has an image, the width at which the image is displayed is also included. |
Header | The width of the column is calculated based on the width required to fully display the header text, as well as additional elements such as an image and sort indicator. |
HeaderAndCells | Combines the 'Header' and 'AllCells' flags; the column's width is made large enough to accommodate the ideal width of the header or the width of the largest cell value, using the larger of those two values. |
None | The width of the column is not changed. |
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2