I have a problem when binding the data in gridview. I am attempting to display the amount field in USA format like 123,456.00. How would I go about this with data binding?
The code I have so 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>
1 Answer