This is a migrated thread and some comments may be shown as answers.

GridViewMaskBoxColumn

2 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
thien nluong
Top achievements
Rank 1
thien nluong asked on 06 Jun 2011, 04:20 AM
I want to show currency like '9.999,99' in GridViewMaskBoxColumn
it mean "." is Thousand separator and "," is Decimal point

it same RadMaskedEditBox with 'Culture' property =  new System.Globalization.CultureInfo("vi-VN");

How to do it with GridViewMaskBoxColumn ?

Thanks & Best regards

2 Answers, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 06 Jun 2011, 08:31 AM
Hello,

For displaying the values like this you just have to set the FormatInfo and the FormatString for the column, like so:
column.FormatInfo = CultureInfo.CurrentUICulture;
column.FormatString = "{0:#,0.00}";

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
0
thien nluong
Top achievements
Rank 1
answered on 06 Jun 2011, 12:09 PM
It worked. Thank you very much :D

Best Regards
Tags
GridView
Asked by
thien nluong
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
thien nluong
Top achievements
Rank 1
Share this question
or