Hi everyoneI just trying to copy part of data and paste to other cells but nothing happens.I attached a project where my issue is reproducible.
Thanks.
Hello Gleb,
Thank you for the feedback.
We are glad to know that we were able to help you achieve the functionality you were looking for. We believe this thread can help other people looking for a similar solution.
If you have any questions, please let us know.
It little bit strange, but OK. Thnaks.
Thank you for the sample you have sent.
The user-initiated paste doesn’t involve any internal paste operations in the XamGrid control. The result of this operation is an event that is fired and you can further manipulate data stored in the event argument – ClipboardPastingEventArgs.
I will suggest taking a look at this serie of topics: Copy-Paste Support And also Copy and Paste Helper Methods.
For example as described in those topics you can add to your sample, the option to exclude headers:
<ig:XamGrid.ClipboardSettings> <ig:ClipboardSettings CopyOptions="ExcludeHeaders" AllowCopy="True" AllowPaste="True"/></ig:XamGrid.ClipboardSettings>
And then handle the pasting event:
private void XamGrid_ClipboardPasting(object sender, Infragistics.Controls.Grids.ClipboardPastingEventArgs e) { e.PasteAsExcel(); }
You can find more samples also in the Samples Browser -> XamGrid-> Editing & Selection.
If you have further questions concerning this matter, please let me know.