I have a contextmenustrip with some code behind one of the menu items (well thats what I want). I want to add a new row to datagridview2 and copy cell3, cell4 and cell5 from datagridview to the newly added row into cell 1, cell2 and cell0.
Datagridview2 with have some empty cells after the copy for the user to add there own data.
I started with
Me.BindingSource2.AddNew()
Then what. I tried
Me.BindingSource2.AddNew()
For x As Byte = 0 To (DataGridView1.Rows.Count - 2)
DataGridView2.Rows(x).Cell
s(0).Value
= DataGridView1.CurrentRow.C
ells(5).Va
lue
Next x
Just to try and copy one cell but no luck.
Start Free Trial