Back to Devexpress

TreeListColumn.UnboundType Property

windowsforms-devexpress-dot-xtratreelist-dot-columns-dot-treelistcolumn-390bc9b2.md

latest5.0 KB
Original Source

TreeListColumn.UnboundType Property

Specifies whether this column is unbound, and if so, the type of data it stores.

Namespace : DevExpress.XtraTreeList.Columns

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
[DefaultValue(UnboundColumnType.Bound)]
[EditorBrowsable(EditorBrowsableState.Never)]
[XtraSerializableProperty]
public UnboundColumnType UnboundType { get; set; }
vb
<DefaultValue(UnboundColumnType.Bound)>
<XtraSerializableProperty>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Property UnboundType As UnboundColumnType

Property Value

TypeDefaultDescription
UnboundColumnTypeBound

A UnboundColumnType value that specifies the column’s data type and binding mode.

|

Available values:

NameDescription
Object

Indicates that the column contains values of any type.

| | Integer |

Indicates that the column contains integer (16, 32, 64), Byte, SByte, or UInt (16, 32, 64) values.

| | Decimal |

Indicates that the column contains decimal values (the Decimal type).

| | DateTime |

Indicates that the column contains date-time values (the DateTime type).

| | String |

Indicates that the column contains string values (the String type).

| | Boolean |

Indicates that the column contains Boolean values (the Boolean type).

| | Bound |

Indicates that the column is bound to a field in the control’s underlying data source. The type of data this column contains is determined by the bound field.

|

Remarks

In v21.1 and higher, the UnboundType property is hidden. Use the TreeListColumn.UnboundDataType property instead to make a column unbound and specify the column’s data type. Compared to the UnboundType property, the TreeListColumn.UnboundDataType property can accept any data type (including previously unavailable TimeSpan and DateTimeOffset ).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the UnboundType 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.

winforms-treelist-unbound-columns/CS/TreeList_UnboundDataViaEvent/Form1.cs#L27

csharp
TreeListColumn unbColumnMarchChange = new TreeListColumn();
unbColumnMarchChange.UnboundType = DevExpress.XtraTreeList.Data.UnboundColumnType.Decimal;
unbColumnMarchChange.Visible = true;

winforms-treelist-unbound-columns/VB/TreeList_UnboundDataViaEvent/Form1.vb#L22

vb
Dim unbColumnMarchChange As TreeListColumn = New TreeListColumn()
unbColumnMarchChange.UnboundType = DevExpress.XtraTreeList.Data.UnboundColumnType.Decimal
unbColumnMarchChange.Visible = True

See Also

UnboundDataType

UnboundExpression

CustomUnboundColumnData

Unbound Columns

TreeListColumn Class

TreeListColumn Members

DevExpress.XtraTreeList.Columns Namespace