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

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