TreeListColumn.Width Property
Gets or sets the column width in pixels.
Namespace: DevExpress.XtraTreeList.Columns
Assembly: DevExpress.XtraTreeList.v19.2.dll
Declaration
[DefaultValue(75)]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)]
public int Width { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Int32 | 75 | An integer value representing the column width in pixels. |
Remarks
Use the Width property to adjust the column width. Note, however, that there can be situations when the value returned by this property doesn’t represent the actual column width. This takes place when enabling the TreeListOptionsView.AutoWidth option. In this case, columns are proportionaly resized to fit the width of the control. In fact, the TreeListColumn.Width
properties of columns remain the same. The actual width of a column can be accessed via the TreeListColumn.VisibleWidth property in this case.
The actual value that you can set using the Width property is limited by the TreeListColumn.MaxWidth and TreeListColumn.MinWidth property values.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Width property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.