Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Form1 Gridview selected Rows Data Send/Transfer on Form2 Gridview Rows by Button Click

$
0
0

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 =newobject[row.Cells.Count];for(int i =0; i < row.Cells.Count; i++) items[i]= row.Cells[i].Value;Form2 for2=newForm2(); for2.dataGridView2.Rows.Add(items);//for.dataGridView2.DataSource = items; dataGridView1.Rows.Remove(row);}


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>