Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
Copy Paste doesn't work
posted

Hi everyone
I 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.

CopyPasteIssue.zip
Parents
  • 2490
    Verified Answer
    Offline posted

    Hello Gleb,

    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.

Reply Children
No Data