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.
Yes,
You can use the following command;
xamDataGrid1.ExecuteCommand(DataPresenterCommands.Copy);