Hello
I am using a XamNumericEditor.Bound is the control to a datarow and its numeric column "MyValue".The XAML-Code is appearing as following:
<igEditors:XamNumericEditor Value="{Binding Path=[MyValue]}" /><TextBlock Text="{Binding Path=[MyValue]}"/>
When the value is changed in the editor this change is not reflected in the textblock, even though the change is written in the row.The binding to the datarowview is not working either. Any change in the editor is recognized as an error (red frame) and the change is not written in the row.If however I use a XamTextEditor the above example works perfectly.What am I doing wrong?
Best wishes,
A. Kasar
Hello Ates,
Thank you for your post!
I have been looking into this issue, and I have been able to reproduce the DataRow binding not reflecting the changes, even though the DataRow has been changed. However, I was not able to reproduce the changing of a DataRowView creating an error with the XamNumericEditor. In my sample when the DataRowView is updated, the TextBox updates accordingly.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using. My test was performed using version 14.2.20142.2081 in Infragistics for WPF 2014 Volume 2.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Please let me know if I can provide any further assistance.
Sincerely,AndrewDeveloper Support Engineer IInfragistics Inc.www.infragistics.com/support
Thank you very much for your quick answer.The problem with binding per DataRowView I was able to solve using your example.Your are using the column with type "double".In my example I am using the column with type "decimal".How can I make sure that the binding also works correctly with a decimal-column?Is the problem with the binding of a DataRow (that you were able to duplicate in your example) going to be solved in the near future with an Update of Infragistics?
Sincerely,
A.Kasar
Hello Kasar,
Regarding binding to a decimal type, the XamNumericEditor is configured to accept a double as the default type. If you would like to bind a decimal type to it, consider setting the ValueType property on the editor to {x:Type sys:Decimal} where sys: is the System (mscorlib) namespace.
Regarding the DataRow binding, I don't believe this is a development issue, as the built in WPF DataRow does not raise any type of property changed event that would update the value in the view. I would recommend continuing to bind to the DataRowView rather than the DataRow.
Please let me know if you have any other questions or concerns on this matter.
Just checking in, did you have any other questions or concerns on this matter?