Click here to Skip to main content
16,016,643 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a data grid view that if a user selects a specific row then can select copy and it will add the first columns data to the clipboard. I need help with if the user selects multiple columns it will add the first colmns data for each item. Below is the code im using.

VB
Dim IntName
Dim i As Integer

i = Completed_DGV.CurrentRow.Index
IntName = Completed_DGV.Item(0, i).Value

Clipboard.SetDataObject(IntName)
Posted

1 solution

The clipboard does not accept many values. So you need to concatenate those values in to one, and set that one value, being a representation of all the values you want, to be what is in the clipboard.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900