C1.Win.C1FlexGrid Namespace > Column Class : Width Property |
'Declaration
<C1CategoryAttribute("Layout")> <C1DescriptionAttribute("Gets or sets the width for this column (-1 means use default width).")> <DefaultValueAttribute()> Public Property Width As Integer
[C1Category("Layout")] [C1Description("Gets or sets the width for this column (-1 means use default width).")] [DefaultValue()] public int Width {get; set;}
[C1Category("Layout")] [C1Description("Gets or sets the width for this column (-1 means use default width).")] [DefaultValue()] public: property int Width { int get(); void set ( int value); }
Setting this property to -1 causes the grid to use the default column width for this column (see the RowColCollection.DefaultSize property).
Width returns the width assigned to the column even if the row is invisible, and returns -1 if the row has the default height. To obtain the actual display width of a column, use the WidthDisplay property.
Target Platforms: 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