Skip to main content
A newer version of this page is available. .
Tab

VerticalGridDataRow.UnboundType Property

Gets or sets the data type and binding mode of the row.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

[DefaultValue(UnboundColumnType.Bound)]
public virtual UnboundColumnType UnboundType { get; set; }

Property Value

Type Default Description
UnboundColumnType **Bound**

A UnboundColumnType enumeration value that represents the data type and binding mode of the row.

Available values:

Name Description
Bound

Indicates that the column is bound to a field in the control’s underlying data source. The type of data this column contains is determined by the bound field.

Integer

Indicates that the column is unbound and it contains integer values (the Int32 type).

Decimal

Indicates that the column is unbound and it contains decimal values (the Decimal type).

DateTime

Indicates that the column is unbound and it contains date/time values (the DateTime type).

String

Indicates that the column is unbound and it contains string values (the String type).

Boolean

Indicates that the column is unbound and it contains Boolean values (the Boolean type).

Object

Indicates that the column is unbound and it contains values of any type. A TextEdit editor is assigned for the in-place editing of such a column.

Remarks

The ASPxVerticalGrid supports unbound rows. These are rows which aren’t bound to any field in the grid’s data source. Data for unbound rows should be supplied using the ASPxVerticalGrid.CustomUnboundRowData event. This event should also be used to save any changes made by an end-user in unbound rows.

To make a column unbound, specify the UnboundType and VerticalGridDataRow.FieldName properties. The VerticalGridDataRow.FieldName property value should be set to a unique value and not refer to any field in ASPxVerticalGrid’s data source. Set the UnboundType property to the UnboundColumnType value that corresponds to the type of data the row will display. For example, if the row is supposed to display integer values, set the UnboundType property to UnboundColumnType.Integer. The data type specified by the UnboundType property determines which editor should be used by default to edit the row’s values.

If the row’s UnboundType property is set to UnboundColumnType.Bound, it’s assumed that this row is bound to a specific field in the data source which is specified by the VerticalGridDataRow.FieldName property.

Refer to Unbound Rows topic for more information.

See Also