Back to Devexpress

GridColumnCollection.AddUnbound(String, Type) Method

windowsforms-devexpress-dot-xtragrid-dot-columns-dot-gridcolumncollection-dot-addunbound-x28-system-dot-string-system-dot-type-x29.md

latest2.0 KB
Original Source

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

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

Declaration

csharp
public virtual GridColumn AddUnbound(
    string fieldName,
    Type dataType
)
vb
Public Overridable Function AddUnbound(
    fieldName As String,
    dataType As Type
) As GridColumn

Parameters

NameTypeDescription
fieldNameString

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

TypeDescription
GridColumn

The created unbound column.

|

See Also

GridColumnCollection Class

GridColumnCollection Members

DevExpress.XtraGrid.Columns Namespace