Currency formatting in DataList

I have a data bound field in a DataList.  Trying to format it to show currency ($300,000) using the following.
<span style="color: #0000cd">Price:&nbsp;
                                        <asp:Label ID="BusPriceLabel" runat="server" Font-Bold="True" Font-Size="Medium"
                                            Style="font-size: small; position: relative;" Text='<%# Eval("BusPrice", "${0:###,###}") %>' ForeColor="Black"></asp:Label></span></td>

Unfortunately this only produces "$300000".  What am I doing wrong?
PrimeNYAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

the_bachelorCommented:
Try
Eval("BusPrice", "${0:#,###}")
PrimeNYAuthor Commented:
the bachelor - Thanks but I've tried that and other similar versions and nothing seems to be recognized.
the_bachelorCommented:
Odd, I tried it and it worked for me.
I'm assuming your using SQL server... What is the data type of your BusPrice column as in the resulset that your passing to the datalist?
Also make sure that you're not experiencing Caching issues with the Browser so when you make changes they are effectively taken into account.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
the_bachelorCommented:
As an altenative you could try:
Text='<%# String.Format("{0:$#,###}",Eval("BusPrice"))
PrimeNYAuthor Commented:
Got it.  Problem was with the data type in the table.  Had it as VarChar instead of Money.  Thanks for your help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.