Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy data from DataGrid or DBGrid to Clipboard and paste into Excel

Status
Not open for further replies.

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top