Reputation:
Can I format the type of a datacolumn of a dataset to currency (for a specific culture) before binding it to the grid
Upvotes: 1
Views: 3408
Reputation: 4599
DataColumns support various types from the .Net system.
They are listed at MSDN. Currency is not a type in .Net. Usually Decimal is preferred for this use.
Upvotes: 1
Reputation: 10327
You can set the DataFormatString property of the column to "C".
It should take the current culture into account when formatting. If this is for an application where the thread's culture wont be the user's culture than you have to do it manually as explained here.
Upvotes: 0