Click here to Skip to main content
15,907,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
is it possible to copy certain cells from a datagridview row and copy to some other row .in the same datagridview. similarly copy cells from a particular column to some other column in the same datagridview . please somebody help by giving a sample code. thanks in advance
Posted

1 solution

Yes, that's possible. It's best to use a ContextMenuStrip on your DataGridView to initiate actions like Copy, Paste, Insert, Delete, Clear, etc.

Then use conrols like .SelectedCells, .SelectedColumns, .SelectedRows in your MenuItem_Click routine. If you're stuck, show use your code so far and we'll help you from there.
 
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