Tag
A newer version of this page is available. Switch to the current version.

ColumnBase.UnboundExpression Property

Gets or sets an expression used to evaluate values for this column if it is not bound to a data source field.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v19.1.Core.dll

Declaration

[DefaultValue("")]
public string UnboundExpression { get; set; }
<DefaultValue("")>
Public Property UnboundExpression As String

Property Value

Type Default Description
String

String.Empty

A String that specifies an expression used to evaluate values for this column.

Remarks

The GridControl supports bound and unbound columns:

  • Bound columns obtain their data from data fields in a grid's data source.
  • Unbound columns are not bound to any field in the data source. These columns must be populated manually by handling the GridControl.CustomUnboundColumnData event or using the UnboundExpression property.
<dxg:GridColumn FieldName="DiscountAmount"
                UnboundType="Decimal"
                UnboundExpression="Round([UnitPrice] * [Quantity] - [Total])">
</dxg:GridColumn> 

Implements

DevExpress.Xpf.GridData.IColumnInfo.UnboundExpression
See Also