shahnid k

shahnid k

  • NA
  • 61
  • 15.5k

currency in gridview

Dec 8 2016 2:15 AM
I need to change my format of numbers in gridview to currency format. i have written the html codes as 
 
<asp:TemplateField HeaderText="Dec" SortExpression="December">
<ItemTemplate>
<asp:Label ID="Label12" runat="server"
Text='<%# Bind("Dec", "{0:#,0}") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:Label ID="Label12" runat="server"
Text='<%# Eval("Dec", "{0:#,0}") %>'></asp:Label>
</EditItemTemplate>
<HeaderStyle CssClass="headergrid11" />
</asp:TemplateField>
 
please help to resolve this. 

Answers (2)