Xceed Grid for WinForms v4.3 Documentation
Width Property (Column)


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > Column Class : Width Property
Gets or sets the width of the column in pixels.
Syntax
'Declaration
 
<DescriptionAttribute("The width of the column in pixels.")>
<CategoryAttribute("Appearance")>
<AmbientValueAttribute(-2147483648)>
<LocalizableAttribute(True)>
<ApplyToDesignerAttribute(True)>
Public Property Width As Integer
'Usage
 
Dim instance As Column
Dim value As Integer
 
instance.Width = value
 
value = instance.Width
[Description("The width of the column in pixels.")]
[Category("Appearance")]
[AmbientValue(-2147483648)]
[Localizable(true)]
[ApplyToDesigner(true)]
public int Width {get; set;}

Property Value

A value representing the width of the column in pixels.
Remarks

In order for a column to have a fixed size, the MinWidth and MaxWidth properties must be set to the same value.

To prevent the column from being resized at run-time, the ColumnManagerRow.AllowColumnResize property must be set to false.

To reset the value of the Width property to its default value, DefaultWidth, the ResetWidth method must be called.

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
ResetWidth Method
DefaultWidth Property