Add value in Combobox from the Datagriedview
Visual Studio
2
Posts
2
Posters
10
Views
1
Watching
-
Hello everyone, I'm trying to create one code to add value in combobox from my Datagriedview.
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
DataGridView1.Rows.Add(ComboBox1.Text) ComboBox1.Items.Add(DataGridView1.Rows.Add(ComboBox1.Text)) End Sub
End Class
But the simple code doesn't work.Could you help me please. Nice day.
-
Hello everyone, I'm trying to create one code to add value in combobox from my Datagriedview.
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
DataGridView1.Rows.Add(ComboBox1.Text) ComboBox1.Items.Add(DataGridView1.Rows.Add(ComboBox1.Text)) End Sub
End Class
But the simple code doesn't work.Could you help me please. Nice day.