FlexGrid for WinForms
Width Property (Column)



Gets or sets the width of this column, in pixels (the value -1 represents the default column width).
Syntax
'Declaration
 
<C1CategoryAttribute("Layout")>
<C1DescriptionAttribute("Gets or sets the width for this column (-1 means use default width).")>
<DefaultValueAttribute()>
Public Property Width As Integer
'Usage
 
Dim instance As Column
Dim value As Integer
 
instance.Width = value
 
value = instance.Width
[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);
}
Remarks

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.

Requirements

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

See Also

Reference

Column Class
Column Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback