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
695
Code to copy the selected cells to clipboard
posted

Hi, I am able to copy the selected cells or rows to clipboard using control + c by setting FieldLayoutSettings.AllowClipboardOperations  to  AllowClipboardOperations.Copy.

But I am wondering how can I do the same on click of a button.

 

 

  • 69686
    posted

    Yes,

    You can use the following command;

                xamDataGrid1.ExecuteCommand(DataPresenterCommands.Copy);