Skip to main content
All docs
V25.1
  • 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.1.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