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
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.
The fix for development issue 211566 is available in the latest service release which can be downloaded from the My Keys and Downloads page.