rlsokoloff
asked on
Copy DataViewGrid contents to the Clipboard
I can programmatically select the contents of a Data View Grid by using the following command:
DataViewGrid1.select
Is there a one- or two-line piece of code that can be used to paste the selection to the clipboard, i.e. it emulates a user pressing [Control][C].?
DataViewGrid1.select
Is there a one- or two-line piece of code that can be used to paste the selection to the clipboard, i.e. it emulates a user pressing [Control][C].?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It works with a more complete answer below......
Clipboard.SetDataObject(Me .DataViewG rid1.GetCl ipboardCon tent)
Clipboard.SetDataObject(Me
ASKER
DataViewGrid1.Select
Clipboard.SetDataObject(Me
This works. Thank you.