Hi @jumexmango ,
I set the same databound as yours and make a test on my side.
Result of my test.
Here's the code you can refer to:
Form2:
Private Sub Show_Click(sender As Object, e As EventArgs) Handles Show.Click
With DataGridView1
If .SelectedRows IsNot Nothing AndAlso .SelectedRows.Count = 1 Then
Dim row As DataGridViewRow = .SelectedRows(0)
Dim st As String = row.Cells(0).Value.ToString()
Using Form1 As New Form1
Form1.dgvdata = st
Form1.ShowDialog()
End Using
End If
End With
End Sub
Form1:
Public dgvdata As String
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.IngredientesTableAdapter.Fill(Me.YourDataSet.Ingredientes)
Dim dr As DataRow = Me.YourDataSet.Ingredientes.NewRow()
dr("Articulo") = dgvdata
Me.YourDataSet.Table1.Rows.InsertAt(dr, 0)
ComboBox1.DataSource = Me.YourDataSet.Ingredientes
ComboBox1.DisplayMember = "Articulo"
ComboBox1.ValueMember = "Articulo"
End Sub
Hope the code above could be helpful.
Best Regards.
Xingyu Zhao
*
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.