I catch an error when I copy data. The error type is 'MixedSelection'. What does it mean?
What's the reason? And how to solve it?
The ClipboardOperationErrorEventArgs.Error property will be MixedSelection if this is the cause of the error. I"m not sure what you mean which record or field though. Basically this error will happen if 2 or more selected collections - i.e. the datapresenter's SelectedItems.Cells, SelectedItems.Fields or SelectedItems.Records - has a count > 0.
Can I get the error reason from ClipboardOperationErrorEventArgs? For example: which record or field in current selection?
Mixed selection is when you have 2 or more different types of items selected - e.g. a combination of records and fields, etc. Just as Excel does not allow this - neither does the xamDataPresenter - when performing a copy/paste operation.