I have 2 datagridview. I want to copy selected rows of first datagridview to second datagridiview. :down::down::down:
Printable View
I have 2 datagridview. I want to copy selected rows of first datagridview to second datagridiview. :down::down::down:
The first step would be to use a For Each loop to iterate over the SelectedRows collection of the first grid. You may then be able to Clone the current row and add that clone to the second grid, although I've never actually tried that. If that doesn't work you can just Add a new row to the second grid and copy the Value of each cell across from the current row in the loop.