asp:boundcolumn dataformatstring - How do you suppress the trailing zero
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
I'm displaying a datagrid with a couple of decimal numbers. I would like to always display the first two digits after the decimal point and only display additional digits if they are present. I've tried {0:N2} and {0:D2} results are the same - only two digits. I've tried {0:N3} and {0:D3} results are the same - always three digits. Any ideas? Thanks in advance! What ever happened to just using a mask #,##0.00###?