aspnetbootstrap-devexpress-dot-web-dot-bootstrap-324a97d7.md
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
public delegate void BootstrapCardViewColumnDisplayTextEventHandler(
object sender,
BootstrapCardViewColumnDisplayTextEventArgs e
);
Public Delegate Sub BootstrapCardViewColumnDisplayTextEventHandler(
sender As Object,
e As BootstrapCardViewColumnDisplayTextEventArgs
)
| 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