Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data grid money format ?!?!
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00839982
Message ID:
00839989
Vues:
22
Hi Joe,

You can set the DataFormatString for the BoundColumn to:

{0:c}

Which will format the data as currency (thereby putting in the $, decimal place, and appropriate digits after the decimal place).


>I have a grid with a dynamic SQL that has a SQL data type 'money' that insists on the full display of 4 decimal places to the left. How can I format the col on the fly?
>
>My thanks in advance,
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform