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
|
I've run into two issues that I think are related. I've attached a project which will allow you to duplicate the issues. First, when the ItemsSource for the DataGrid is changed (at least going from null to an instance of a collection) the DataGrid doesn't paint the rows (items). If I resize the application window, it will cause the DataGrid to repaint, then everything is fine. To reproduce this in the attached application, run the application and select an item in the ListBox on the left. Notice that the DataGrid doesn't paint the rows. Resize the application and the DataGrid will then paint correctly. If you change the selection in the ListBox on the left the DataGrid updates (paints) correctly. Second, if you try to edit the 'Name' column (which is using DisplayMemberBinding with Mode=TwoWay) you will get an exception (NullReferenceException). I believe the issue is related to the ItemsSource property on the DataGrid being set to null initially and then changed. If I set the ItemsSource to an instance of a collection (even if it is empty) before it paints, then the editing works correctly. It almost seemed as though the property information needed to be refreshed after setting the ItemsSource property. I hope this makes sense. Let me know if you have any questions. Thanks! |
|
|
Hello Jared Thanks for pointing out these issues. We'll look into fixing them soon. Jason Fauchelle |
|
|
Hello Jared Both these issues will be resolved in the next nightly build. Jason Fauchelle |
|
|
Thanks Jason! |
|
|
Thanks Jason! |
|