Tab

CardViewColumn.UnboundExpression Property

Gets or sets an expression used to evaluate values for the current unbound column.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

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

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.

Examples

<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>
See Also