Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

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

#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