Skip to main content
A newer version of this page is available. .
All docs
V22.2

GridColumnCollection.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.v22.2.dll

NuGet Package: DevExpress.Win.Grid

Declaration

public virtual GridColumn 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
GridColumn

The created unbound column.

See Also