Welcome to the WPF feedback portal. We’re happy you’re here! If you have feedback on how to improve the WPF, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Object reference not set to an instance of an object Error.


Steps to reproduce:

Create Viewmodel with bool Property.

Bind AllowEditing Property of SfDatagrid to Property of Viewmodel.

Bind Viewmodel to an Itempresenter (Viewmodel und View are linked through DataTemplate)

Change Viewmodel in Itempresenter

=> Error:

syncfusion_error1.png

Stacktrace attached.


Work Around:

Remove Binding

Set Value of AllowedToEdit in Datacontextchanged Event of Usercontrol.

Note: Tried to change binding from OneWay to OneTime => didn't help.