I have 2 datagridviews. I need to transfer a single selected row from one to another
I have used this code:-
- private void button4_Click(object sender, EventArgs e)
- {
- List
- foreach(DataGridViewRow row in dataGridView1.SelectedRows)
- {
- TList.Add(row.DataBoundItem);
- dataGridView2.DataSource = TList;
- }
- }
but when i try to add another row , it replaces the current row in datagridview2.
any solution??

Tapan PatelRank #614 · 3.9K reputationPosted Aug 19, 2016, 5:07 AM EDT
Joginder BangerRank #360 · 7K reputationPosted Aug 19, 2016, 5:23 AM EDT
siddiq shameer39 reputationPosted Aug 19, 2016, 3:32 PM EDT
Vishal JadavRank #1,692 · 901 reputationPosted Aug 20, 2016, 2:25 AM EDT