Back to Devexpress

BootstrapCardViewColumnDisplayTextEventHandler Delegate

aspnetbootstrap-devexpress-dot-web-dot-bootstrap-324a97d7.md

latest2.0 KB
Original Source

BootstrapCardViewColumnDisplayTextEventHandler Delegate

A method that will handle the BootstrapCardView.CustomColumnDisplayText event.

Namespace : DevExpress.Web.Bootstrap

Assembly : DevExpress.Web.Bootstrap.v25.2.dll

NuGet Package : DevExpress.Web.Bootstrap

Declaration

csharp
public delegate void BootstrapCardViewColumnDisplayTextEventHandler(
    object sender,
    BootstrapCardViewColumnDisplayTextEventArgs e
);
vb
Public Delegate Sub BootstrapCardViewColumnDisplayTextEventHandler(
    sender As Object,
    e As BootstrapCardViewColumnDisplayTextEventArgs
)

Parameters

NameTypeDescription
senderObject

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.

cs
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

DevExpress.Web.Bootstrap Namespace