Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a ComboBox which has two options and six textboxes. How do I get textboxes data into Datagridview when the columns of the datagridview will show N/A or 0(zero) with the other option.

What I have tried:

Private Sub btnUpdate_Click(sender As Object, e As EventArgs) Handles btnUpdate.Click



DataGridView1.Rows.Add (TextBox1.Text, TextBox2.Text,
TextBox6.Text, TextBox13.Text, TextBox20.Text, TextBox3.Text, TextBox4.Text, TextBox5.Text,TextBox7.Text, TextBox14.Text, TextBox21.Text, TextBox6.Text, TextBox7.Text, TextBox8.Text, TextBox9.Text, TextBox10.Text, TextBox11.Text, TextBox12.Text)

End Sub
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900