Format currency in datalist items?

  • Thread starter Thread starter sean
  • Start date Start date
S

sean

HI There,

I was wondering if you can format currency values in a datalist? I have
tried many ddiiferent ways to do this and all have given me errors.

Sean - thanks in advance

<%# DataBinder.Eval(Container.DataItem, "listprice")%>
DataFormatString="{0:$#,###.##}"
 
Hi, try this:

<%# DataBinder.Eval(Container.DataItem, "listprice",
"{0:$#,###.##}")%>

Mario
 
Back
Top