There are 2 forms
1 form - we are sending the full name and the phone number to the TextBox
; also, by calculating the amount to be paid in one of the Label
2 form - suspended component DatаGridView
Question: how to add data from TextBox(ов)
and Label(ов)
to DatаGridView
?
If possible, in the following order - Last Name, First Name, Middle Name, Telephone, Amount (order).
n = Sell.dataGridView1.RowCount; if (comboBox1.SelectedIndex == 0) label14.Text = ysl.dataGridView2.Rows[n].Cells[n].Value; // = sum; sum = label14.Text Sell.table1TableAdapter.Insert(n + 1, textBox4.Text, textBox3.Text, textBox1.Text, textBox2.Text, label14.Text); // textBox.Text);
Here is a sketch with the addition of a ComboBox
to the form (but this is not the case now).
Help by example please.