This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, I found that if I use for the property FocusChangedBehaviorProperty the value "Round" for the NumericTextBox and the DoubleTextBox and enter a decimal followed by a number it gives the wrong number. See below for how to reproduce it. To see the problem click on the first cell of column "FirstName". Then click tab until the cell in the Weight column is highlighted. The value you should see is 183. Then click the decimal key and then click the number two key and you should see 1,283. This does not occur If we remove FocusChangedBehavior="Round" from the DataTemplate. Thank you Oscar To reproduce I used your sample "DataGridCustomEditorsDemo" and did the following. 1) in file DataGridCustomEditorsDemo.xaml add DataTemplate and column editor for Weight property.
2) In file SimplePerson.cs added new float property Weight to SimplePerson class. private float _weight;
3) Modified constructor in DataGridCustomEditorsDemo.xaml.cs to add the Weight values
|
|
|
Hi Oscar, Thanks for pointing this out and providing the repro steps. A fix for this issue will be available in the next nightly build. -Jason Fauchelle |
|
|
Thanks Jason. It seems to be working fine. ...Oscar |
|