CardViewColumn.UnboundExpression Property
Gets or sets an expression used to evaluate values for the current unbound column.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Default | Description |
---|---|---|
String | String.Empty | A string that specifies an expression used to evaluate values for the current column. |
Remarks
You can create an unbound column by setting the CardViewColumn.UnboundType property to a specific data type. Unbound columns can be populated manually via the ASPxCardView.CustomUnboundColumnData event, or by specifying an expression via the UnboundExpression used to evaluate values for this field. The Expressions section describes the syntax for creating expressions.
Using expressions doesn’t allow data entered by end-users to be saved. To save data, provide data for unbound fields via the ASPxCardView.CustomUnboundColumnData event.
To learn more about unbound columns, see Unbound Columns.
Example
<dx:ASPxCardView ID="CardView" runat="server" DataSourceID="SalesPersonDataSource" Width="100%" AutoGenerateColumns="False">
<Columns>
...
<dx:CardViewTextColumn FieldName="UnitPrice">
<PropertiesTextEdit DisplayFormatString="c" />
</dx:CardViewTextColumn>
<dx:CardViewTextColumn FieldName="Total" UnboundType="Decimal" UnboundExpression="UnitPrice * Quantity">
<PropertiesTextEdit DisplayFormatString="c" />
</dx:CardViewTextColumn>
...
</Columns>
</dx:ASPxCardView>