Back to Devexpress

CardViewColumn.UnboundExpression Property

aspnet-devexpress-dot-web-dot-cardviewcolumn-66f42f94.md

latest2.8 KB
Original Source

CardViewColumn.UnboundExpression Property

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

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
StringString.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

aspx
<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

Card View

CardViewColumn Class

CardViewColumn Members

DevExpress.Web Namespace