D
David C
<asp:TemplateField HeaderText="Actual Qty" HeaderStyle-Width="100px">
<ItemTemplate>
<%# Eval("ActualQuantity")%>
</ItemTemplate>
</asp:TemplateField>
I am using the syntax above for the given column as you can see. When
the value of ActualQuantity is 0, I would like to have it display "-"
as opposed to '"0." What is the best way to handle it without having
to code a lot. I have a lot of columns like that, so I do not want to
have to code it for each column.
<ItemTemplate>
<%# Eval("ActualQuantity")%>
</ItemTemplate>
</asp:TemplateField>
I am using the syntax above for the given column as you can see. When
the value of ActualQuantity is 0, I would like to have it display "-"
as opposed to '"0." What is the best way to handle it without having
to code a lot. I have a lot of columns like that, so I do not want to
have to code it for each column.