allelopath
asked on
Format table cell in DataList to 2 decimal places
In a DataList, I have a table cells like so:
How do I get this?
<%#Convert.ToString(DataBinder.Eval(Container.DataItem, "TotalAmount"))%>
<%#Convert.ToDecimal(DataBinder.Eval(Container.DataItem, "DepositAmount"))%>
It displays numbers to 4 decimal places, like 123.4500. I want only 2 decimal places - 123.45.How do I get this?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.