Bueno el código que te puse primero esta bien lo que sucede es que tienes habilitado la opcion
AllowUserToAddRows en
TRUE es por esto el motivo que se salta de linea y te genera error al agregar
PRIMERA OPCION = DESHABILITA EL AllowUserToAddRows Y TODO TE VA A SALIR OK
Código vb:
Ver originalDim total as Integer
Dim row as DataGridViewRow
DataGridView1.Rows.Add(1)
total = DataGridView1.Rows.Count
row = DataGridView1.Rows(total-1)
row.Cells(0).Value = txtcantidadd.Text
row.Cells(1).Value = cboproducto.Text
row.Cells(1).Tag = cboproducto.Value
row.Cells(2).Value = cboproveedor.Text
row.Cells(2).Tag = cboproveedor.Value
row.Cells(3).Value = cboserial.Text
row.Cells(3).Tag= cboserial.Value
row.Cells(4).Value = txtcaracteristicas.Text
SEGUNDA OPCION = DEJA EL AllowUserToAddRows TAL COMO ESTA ES DECIR EN TRUE
Código vb:
Ver originalDim total as Integer
Dim row as DataGridViewRow
*
total = DataGridView1.Rows.Count
DataGridView1.Rows.Add(1)
row = DataGridView1.Rows(total-1)
*
row.Cells(0).Value = txtcantidadd.Text
row.Cells(1).Value = cboproducto.Text
row.Cells(1).Tag = cboproducto.Value
row.Cells(2).Value = cboproveedor.Text
row.Cells(2).Tag = cboproveedor.Value
row.Cells(3).Value = cboserial.Text
row.Cells(3).Tag= cboserial.Value
row.Cells(4).Value = txtcaracteristicas.Text
Si te das cuenta solo he cambiado la posicion del total y listo
Saludos