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
Post a Comment