Platform: C# ASP.NET 3.5
I have a ListView which builds a Rate field which is decimal, if I simply have <% #Eval(\"Rate\") %> it shows 4.5000 rather t
<% #Eval(\"Rate\") %>
In addition to using <% #Eval("Rate","{0:F2}") %> I also use: style="text-align:right" Instead of trying to make the format do the correct number of digits. Of course this could also be a CSS setting in the css file, instead of inline CSS.
<% #Eval("Rate","{0:F2}") %>
style="text-align:right"