RegistrationForm rg = new RegistrationForm(); for (int i = 0; i < this.dataGridView2.Rows.Count-1; i++) { string[] values = { this.dataGridView2.Rows[i].Cells ["TestID"].Value.ToString(), this.dataGridView2.Rows[i].Cells["TestName"].Value.ToString(), this.dataGridView2.Rows[i].Cells["Charges"].Value.ToString(), this.dataGridView2.Rows[i].Cells["DeliveryDate"].Value.ToString() ; } rg .dataGridView1.Rows.Add(values);//dataGridView is on an other form his.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)