BootstrapCardViewColumnDisplayTextEventHandler Delegate
In This Article
A method that will handle the BootstrapCardView.CustomColumnDisplayText event.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.2.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 | Bootstrap |
A Bootstrap |
#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