GridColumn.UnboundExpression Property

Gets or sets an expression used to evaluate values for the current Unbound Columns. This is a bindable property.

Namespace: DevExpress.Mobile.DataGrid

Assembly: DevExpress.Mobile.Grid.v18.1.dll

Declaration

[XtraSerializableProperty]
public string UnboundExpression { get; set; }
<XtraSerializableProperty>
Public Property UnboundExpression As String

Property Value

Type Description
String

A string that specifies an expression used to evaluate values for the current column.

The GridControl supports bound and unbound columns. Bound columns obtain their data from data fields of a grid's data source. Unbound columns are not bound to any field of the data source. These columns must be populated manually by handling the GridControl.CustomUnboundColumnData event or using the UnboundExpression property.

Examples

This example shows how to create and customize grid columns for displaying and editing data of different types (text, numbers, dates and Boolean values). The specified collection contains columns bound to the data source fields (Product.Name, Product.UnitPrice, Quantity, Date and Shipped) and one unbound column (Total) displaying data values calculated according to a formula based on the values of other columns.

The image below illustrates the result.

Grid_GettingStarted_Lesson2_Result_iOS

Grid_GettingStarted_Lesson2_Result_Android_Dark

See Also