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
Hello Greg,
Thank you for your post. I have been looking into it and I created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.
Looking forward for your reply.
As i said before :
If i put "." the border become red.
I join picture to this post.
I use infragistics 13.1 maybe that's work on 14.1 ?
I tested the sample with the RTM(13.1.20131.1009) and latest service release of 13.1(13.1.20131.2406) and everything seems to work ok on my side. Could you please tell me what is the exact version of NetAdvantage, that you use, and also what are your culture settings and what OS you use, so I could be able to investigate this further for you?
i use french windows 7 64bits.
The version used is :
Infragistics\NetAdvantage 2013.1\WPF\CLR4.0\Bin\SharedXAML\InfragisticsWPF4.Controls.Grids.XamGrid.v13.1.dllInfragistics\NetAdvantage 2013.1\WPF\CLR4.0\Bin\SharedXAML\InfragisticsWPF4.Controls.Menus.XamMenu.v13.1.dllInfragistics\NetAdvantage 2013.1\WPF\CLR4.0\Bin\SharedXAML\InfragisticsWPF4.DataManager.v13.1.dllInfragistics\NetAdvantage 2013.1\WPF\CLR4.0\Bin\WPFOnly\InfragisticsWPF4.v13.1.dll
Version is : 13.1.20131.2204
I tested this and I was able to reproduce your behavior, when I change my language to French and I can say that this is expected, because the decimal separator for French is "," and when you type "." an exception is thrown. I have modified the sample I sent you before, so no matter what language is used the "." will be used as decimal separator. Please let me know if this helps you or you need further assistance on this matter.
Ok,
To catch the value 10.10 or 10,10 it's ok, but if i want to display 10,10 in my grid is it possible ? or i have to make a converter ?
You can use the TextColumn's ValueConverter Property in order to use a converter to change the decimal symbol while not in edit mode. I modified the sample to show you how to do so. Please let me know if this helps you or you have further questions on this matter.