Back to Devexpress

GridView.AddUnboundColumn() Method

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridview-73fd3e8d.md

latest2.0 KB
Original Source

GridView.AddUnboundColumn() Method

Creates an unbound column with an empty display caption and opens the Expression Editor to allow an end-user to specify an expression for the column.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
public GridColumn AddUnboundColumn()
vb
Public Function AddUnboundColumn As GridColumn

Returns

TypeDescription
GridColumn

The created unbound column. null if an end-user didn’t specify an expression for the column.

|

Remarks

The method redirects the call to the AddUnboundColumn(string columnName, string caption) overload. The columnName parameter, which specifies the created column’s GridColumn.Name, is set to a unique value. The caption parameter, which specifies the column’s GridColumn.Caption, is set to an empty string.

See this GridView.AddUnboundColumn overload topic for more details.

See Also

GridView Class

GridView Members

DevExpress.XtraGrid.Views.Grid Namespace