We are using a XamDataGrid, and when the user enters edit mode we use a XamMultiColumnComboEditor to display a number of items which can be clicked, or the text can be entered in autocomplete form.
Under v15.1 this worked fine, but in v15.2 we are getting an exception if the Escape key is pressed when the combo editor is displayed: "Collection was modified; enumeration operation may not execute."
We're trying to get a small sample app that shows the problem, but it is happening on the XamMultiColumnComboEditor where we handle OnPreviewKeyDown and check if the pressed key is the Escape key. In that case we call ExecuteCommand(DataPresenterCommands.EndEditModeAndDiscardChanges) on the XamDataGrid to undo any changes and leave edit mode.
I'll try to get a sample as soon as possible, but by chance is there already a known issue which would explain this problem?
Hi Walter,
I haven't heard about this issue myself so a sample will definitely be helpful. One thing I'm curious about is how you are hooking up your XamMultiColumnComboEditor. Are you doing this in a CellValuePresenter style or are you using the TemplateField? What is your combo editor binding to? The callstack for the exception might be useful as well.
Here is a sample app we've created which demonstrates the problem.