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!>
Thanks for joining our community and helping improve Syncfusion products!
"row.VisibleColumns" gets null in 2 cases, "row.WholeRowElement" gets null in another case. All on the same XAML DataGrid with Master-Details arrangement. Consequently we have a unhandled exception in the application.
For details please see the attached file with screenshots and the XAML file to see how we have implemented SfDataGrid with it.
These exceptions happen when opening a closed detail view after opening and closing other detail views. It also happens when we have a drag-drop event inside the data grid between 2 detail views. And then open another closed detail view. We are not able to identify a clear order of actions, but where able to reproduce it as described.
Currently we are circumventing this issue by expanding all detail views at data grid loading, but that can only be a temporary fix for that particular view.
Please include proper null handling in your code, it seems that there are still a lot of "object should be non-null" assumptions in your code, that lead to actual object null exceptions in production once the variable is null due to reasons.