asp.net - how to bind the data in gridview amount format 123,456.00? -


i have problem when binding data in gridview. attempting display amount field in usa format 123,456.00. how go data binding?

the code have far is:

<asp:templatefield headertext="amount">     <itemtemplate>         <asp:label id="lblamount" runat="server" text='<%# eval("amount") %>'>        </asp:label>     </itemtemplate>     <itemstyle horizontalalign="right" verticalalign="middle" /> </asp:templatefield> 

<asp:boundcolumn datafield="price" headertext="tax" dataformatstring="{0:c}">  

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -