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??
Vishal JadavPosted Aug 20, 2016, 6:25 AM
siddiq shameerPosted Aug 19, 2016, 7:32 PM
Joginder BangerPosted Aug 19, 2016, 9:23 AM
Tapan PatelPosted Aug 19, 2016, 9:07 AM