Main frm = new Main(); StockDBDataSet ds = new StockDBDataSet(); DataRow obj = ds.Tables[0].NewRow(); obj[0] = textBox1.Text; obj[1] = textBox2.Text; obj[2] = textBox4.Text; obj[3] = dateTimePicker1.Value; ds.Tables[0].Rows.Add(obj); ds.Tables[0].AcceptChanges(); frm.dataGridView1.DataSource = null; frm.dataGridView1.DataSource = ds.Tables[0]; this.Hide(); frm.Show();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)