Skip to main content

BootstrapCardViewColumnDisplayTextEventHandler Delegate

A method that will handle the BootstrapCardView.CustomColumnDisplayText event.

Namespace: DevExpress.Web.Bootstrap

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

NuGet Package: DevExpress.Web.Bootstrap

Declaration

public delegate void BootstrapCardViewColumnDisplayTextEventHandler(
    object sender,
    BootstrapCardViewColumnDisplayTextEventArgs e
);

Parameters

Name Type Description
sender Object

The event source.

e BootstrapCardViewColumnDisplayTextEventArgs

A BootstrapCardViewColumnDisplayTextEventArgs object that contains event data.

Remarks

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