Skip to main content

BootstrapCardViewColumnDisplayTextEventHandler Delegate

A method that will handle the BootstrapCardView.CustomColumnDisplayText event.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v23.1.dll

NuGet Package: DevExpress.Web.Bootstrap


public delegate void BootstrapCardViewColumnDisplayTextEventHandler(
    object sender,
    BootstrapCardViewColumnDisplayTextEventArgs e


Name Type Description
sender Object

The event source.

e BootstrapCardViewColumnDisplayTextEventArgs

A BootstrapCardViewColumnDisplayTextEventArgs object that contains event data.


The example below demonstrates how to display the “empty” string within the Discount column’s cells if they contain zero values.

protected void CardView_CustomColumnDisplayText(object sender, BootstrapCardViewColumnDisplayTextEventArgs e)
    if (e.Column.FieldName != "Discount") return;
    if (Convert.ToInt32(e.Value) == 0)
        e.DisplayText = "empty";
See Also