TrialUser
asked on
Format decimal as currency in gridview
I have a decimal field I trid to display as currency ($12.89) using the following code, but no effect. Please suggest:
<asp:BoundField DataField="Price" HeaderText="Price" DataFormatString="{0:c}" />
<asp:BoundField DataField="Price" HeaderText="Price" DataFormatString="{0:c}" />
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
TRY "{0:C2}"
ASKER
None of the above works. Please help.
I would like to make it a boundfield and not a template field, due to other code that exists. Thanks
I would like to make it a boundfield and not a template field, due to other code that exists. Thanks