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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy Datagrid Row

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
I need to be able to copy a row or row's and activate the windows copy function and then paste those rows into something like notepad, word or outlook.

how do you activate the copy function on a datagrid?

any help would be apprecitaed.

thanks in advance

 
what I'm trying to do is highlite a row in a datagrid, then press crtl C to copy the entire row then be able to press crtl V to paste that row into anything I want. e.g. an Outlook email, maybe word etc.

 
Amazingly there all kinds of ways to do this in code, but like you I can't find a way to highlight the data & simply copy it.

If coding a solution is an option for you, here are two resources:
faq222-3262

Gluais faicilleach le cupan làn
 
If your data grid has an underlying recordset object attached to it, then you can use that recordset's rs.GetString() method to copy the record into a string.
The use the VB.Clipboard method.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top