Hi,
I have searched alot but can only find info on moving entire rows bound between 2 datagrids, but noting on moving single cells. I have some code below that works ok from DGV to textboxes but not from DGV1 to DGV2.
Dim i As Integer
i = DataGridView1.CurrentRow.Index
Form3.DataGridView1.Item(1, i).Value = DataGridView1.Item(0, i).Value
Form3.DataGridView1.Item(2, i).Value = DataGridView1.Item(2, i).Value
I am getting the error:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
I am only learning VB so im not sure where im going wrong. I did try changing the value to a string and then placing in the new DGV but same thing. Thanks for any help in advance!