Skip to main content
All docs
V23.2

GridView.AddUnboundColumn(String, String, Type) Method

Creates an unbound column with the specified name, caption, and unbound data type. Opens the Expression Editor to allow a \user to specify an expression for the column.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v23.2.dll

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

Declaration

public GridColumn AddUnboundColumn(
    string columnName,
    string caption,
    Type dataType
)

Parameters

Name Type Description
columnName String

A string that specifies the column’s name. This value is assigned to the GridColumn.Name property. Must be a unique value.

caption String

The column’s caption. This value is assigned to the GridColumn.Caption 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. null if the user has not specified an expression for the column.

See Also