-1

How to copy GridView data into clipboard in DevExpress Winforms

A. S. Mahadik
  • 565
  • 1
  • 4
  • 14
  • https://stackoverflow.com/questions/3546016/how-to-copy-data-to-clipboard-in-c-sharp – andy Jul 03 '17 at 06:59

2 Answers2

0

Take a look at the Clipboard - Copy Data and Formatting documentation article:

DevExpress controls allow end-users to copy the control's selected data to the Clipboard using the common CTRL+C shortcut. These controls also provide the CopyToClipboard method to perform selection copying in code.

Thus, fell free to use the BaseView.CopyToClipboard and the GridView.OptionsClipboard options.

DmitryG
  • 17,362
  • 1
  • 29
  • 52
0

SelectCellAnchorRange() function is used to select cell range. In this methods set both start_column and end_column same as below

Grid.SelectCellAnchorRange(0, columndetails, total_rows, columndetails);

columndetails - which column you want to copy.

A. S. Mahadik
  • 565
  • 1
  • 4
  • 14