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
1435
xamDataGrid Copy & Paste
posted

Hello,

Is there a setting to turn the copy and paste on the xamDataGrid. I found an old post on this forum, however I could not open the solution.

Can you please provide an example how to implement CTRL+C (a row) / CTRL+ V (on the xamDataGrid it self).


Thank you



  • 6365
    Verified Answer
    Offline posted

    Hello,

    In order to set the clipboard operations that are allowed within the XamDataGrid, you can use the AllowClipboardOperations property of the FieldLayoutSettings.

    <igDP:XamDataGrid.FieldLayoutSettings>
                    <igDP:FieldLayoutSettings AllowClipboardOperations="All" />
    </igDP:XamDataGrid.FieldLayoutSettings>

    In order to copy and paste records by using the Ctrl+C and Ctrl+V commands, you can use the built-in copy and paste functionality of the XamDataGrid by using the RecordSelector. If no space is available for pasting multiple records I can suggest you use the AddNew record, which will automatically paste the new records in the XamDataGrid.

    I have prepared an application, where this behavior is implemented.

    If you require any further assistance on this matter, please do not hesitate to ask.

    XamDataGrid_CopyPaste.zip