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.2.dll
Declaration
Property Value
Type | Description |
---|---|
String | A string that specifies an expression used to evaluate values for the current column. |
Remarks
Important
This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.
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.
Example
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.