Hello,
I'm having an issue when sorting a grid for which the backing collection is an ObservableCollection
I'm attaching a simplified sample to illustrate the problem.
After adding one or more items to the grids, you can sort the bottom one without issues, but the application will crash if you try to sort the one at the top.
If you comment out the line where the newly added item is selected, the issue disappears and the grid can be sorted.
Also note that when the very first item is added, it does not get actually selected in the top grid. Subsequent items do get selected.
Thanks,
Rodrigo
The fix for development issue 211566 is available in the latest service release which can be downloaded from the My Keys and Downloads page.
Hello
Similar problem here with sorting in XamGrid.
When I add items to a XamGrid before the grid has been rendered. Then sorting leads to a StackOverflowException (second time).
When I force rendering using this statementawait Task.Run(() => { });
then no Exception occurs.
Thanks! I look forward to the resolution.
Just to clarify my first post, in the first paragraph, what I mean is a generic ObservableCollection with object as a type parameter.
Hi Rodrigo,
I have logged this behavior in our internal tracking system with a Development ID 211566 and linked it to CAS-167961-F9C2J8. The developer will review my investigations to confirm my findings or offer a fix, or other resolution. I will leave this case open and update you with this information after the review. You can continue to send updates to this case at any time.
Regards,
Stefana