Skip to main content
All docs
V23.2

LayoutViewColumnCollection.AddUnbound(String, Type) Method

Creates an unbound column with the specified field name and unbound data type, and adds it to the collection.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v23.2.dll

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

Declaration

public LayoutViewColumn AddUnbound(
    string fieldName,
    Type dataType
)

Parameters

Name Type Description
fieldName String

A unique value that does not match any data source field name. This value is assigned to the FieldName property.

dataType Type

The type of data to store in the unbound column. This value is assigned to the UnboundDataType property.

Returns

Type Description
LayoutViewColumn

The created unbound column.

See Also