Hello,
I have some problem with my Xamgrid.
I'm trying to make an editable xamgrid with this options : <ig:XamGrid.EditingSettings> <ig:EditingSettings AllowEditing="Row" IsMouseActionEditingEnabled="DoubleClick" IsEnterKeyEditingEnabled="True" IsF2EditingEnabled="True" IsOnCellActiveEditingEnabled="False" /> </ig:XamGrid.EditingSettings>
My probleme is when i edit the unit price column.
If i put 10,10 it's ok, i have no problem but if i try to put 10.10 the cell's border become red.
My "." is not supported. My variable is type of double.
My value return an error and i can't validate the row.
i tried to do the same in normal TexBox, out of the Xamgrid and that's works. How can i resolve my problem ?
Did i have to use another type of column ? (unboundColumn, TemplateColumn)
Thanks
I can suggest you use the following code in the MyConverter's Convert method in order to achieve the functionality you want:
return ((double)value).ToString("N2").Replace('.', ',');
Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
Ok.
But if i want to have 28,00.
How can i keep 2 decimal ?
You should add the Converter to all the Columns you want to behave like this. In the sample I sent you only the "Value1" column will work the way you want.
When i use your sample, the dot is not available, i have something like this : (show picture)
(French Windows)
Hello Greg,
I modified the sample I sent you before, so now you should be able to enter "," and "." as decimal separator and have "," displayed in both French and English cultures.