Mirak
Programmer
- Aug 1, 2001
- 28
Hi
I would like to know if anyone knows how to copy data from the datagrid to the clipboard system object and paste it to another application like Excel. Essentially, I have created a database application. This application has a lookup or search feature that allows the user to input different criteria and then a query is executed based on the users request. The results of the query is displayed on a grid, and I want to give the user the option to copy his or her results and paste it to excel, because it is not really a report, just a quick search.
I know you can right-click or Ctrl-c and copy text to the clipboard. But this only supports copying one cell at a time. Does any has a coded solution?
Thanks in advance
Mirak
__________
If God be for us, who can be against us.
I would like to know if anyone knows how to copy data from the datagrid to the clipboard system object and paste it to another application like Excel. Essentially, I have created a database application. This application has a lookup or search feature that allows the user to input different criteria and then a query is executed based on the users request. The results of the query is displayed on a grid, and I want to give the user the option to copy his or her results and paste it to excel, because it is not really a report, just a quick search.
I know you can right-click or Ctrl-c and copy text to the clipboard. But this only supports copying one cell at a time. Does any has a coded solution?
Thanks in advance
Mirak
__________
If God be for us, who can be against us.