Hi,
I 'm newbie with C#. But now i have a problem with my project.
i have form and contain 2 Datagridview. when i selected on checkbox or more rows in datagridview1-name:"dgv1" and then i push a buttom have name :"btRight" it'll tranfer data to next datagridview2 name:"dgv2".
My code:
C#
private void btnRight_Click(object sender, EventArgs e)
{
List<object> destList = new List<object>();
foreach (DataGridViewRow row in dgv1.SelectedRows)
destList.Add(row.DataBoundItem);
dgv2.DataSource = destList;
}Please give me solution.
thanks
Answers
Know the answer? Post it. Somebody with the same question will find it here.