/*Check my code m trying to get stock from
Form2 Gridview
and show on Form1 Gridview so share any idea or give answer
for that*/
foreach (DataGridViewRow row in dataGridView1.SelectedRows)
{ object[] items = new object[row.Cells.Count]; for (int i = 0; i < row.Cells.Count; i++) items[i] = row.Cells[i].Value; Form2 for2= new Form2(); for2.dataGridView2.Rows.Add(items); //for.dataGridView2.DataSource = items; dataGridView1.Rows.Remove(row); }
↧
Form1 Gridview selected Rows Data Send/Transfer on Form2 Gridview Rows by Button Click
↧