I need a FormatString that shows value only when it is not equal to zero. If it is zero then I need a blank string.
Is it possible and how?
I need a FormatString that shows value only when it is not equal to zero. If it is zero then I need a blank string.
Is it possible and how?
Hi @Djordje,
This is not possible just with FormatString alone. You need to set the Template instead:
<RadzenDataGridColumn TItem="DataItem" Property="MyProperty">
<Template>
@(context.MyProperty != 0 ? string.Format("{0:f}", context.MyProperty) : "")
</Template>
</RadzenDataGridColumn>