Hi,
This is Harika. my problem is .. i'm using datagrid1 in one page and other datagrid2 in other page ,now i want to populate my datagrid2 with the selected items of datagrid1.
please help me...please respond to my mail...from long time been u r not responding to my mails at all...
i ll send u my code so that u can understand quickly
in page1 in have written as in button_click function,
and in page2 i have written as
but the problem i'm facing is that added items in newlist2 is not getting populated in datagrid2
This is Harika. my problem is .. i'm using datagrid1 in one page and other datagrid2 in other page ,now i want to populate my datagrid2 with the selected items of datagrid1.
please help me...please respond to my mail...from long time been u r not responding to my mails at all...
i ll send u my code so that u can understand quickly
in page1 in have written as in button_click function,
Code:
public List<string> newlist = new List<string>(); newlist.Add(dg.SelectedItems.ToString()); App app1 = (App)Application.Current; app1.selcditempage(new page2());
and in page2 i have written as
Code:
List<string> newlist2 = new List<string>();
foreach (var item1 in new MainPage().newlist)
{
newlist2.Add(item1);
}
ndg.ItemsSource = newlist2;