473,386 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how to select the row of datagrid which is in other page

13
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,
Expand|Select|Wrap|Line Numbers
  1. public List<string> newlist = new List<string>();
  2.    newlist.Add(dg.SelectedItems.ToString());
  3.    App app1 = (App)Application.Current;
  4.    app1.selcditempage(new page2());

and in page2 i have written as

Expand|Select|Wrap|Line Numbers
  1. List<string> newlist2 = new List<string>();
  2.  
  3.   foreach (var item1 in new MainPage().newlist) 
  4.              {
  5.                newlist2.Add(item1);
  6.              }
  7.              ndg.ItemsSource = newlist2;
but the problem i'm facing is that added items in newlist2 is not getting populated in datagrid2
Jun 8 '10 #1
0 694

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Marcin Okraszewski | last post by:
Hi, I would like to include one page inside an other page, almost like a IFRAME does it. The problem is that I would like the included part to occupy as much space as it needs, so it would be...
2
by: Matt | last post by:
Can we click a link and it will submit the form to the other page? Usually we will submit the form to other page by clicking a submit button. Now I need to do the following, but what if I have...
1
by: developer | last post by:
I have a Windows form that contains a datagrid populated with a table in my database. When i load my form i want a particular row in my datagrid to be selected. How can i do that Thanks
3
by: Rob | last post by:
You can find datagrid in page by refering the form. Gatagrid is a child control of Form. Here is the code ----------------- Dim ctl As New Control For Each ctl In...
4
by: simon | last post by:
If I have <form runat=server> then I can't submit to other page. If I remove runat=server then my controls on that page doesn't work? So I should redirect to other page from codeBehind but how...
5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
3
by: Niggy | last post by:
My datagrid has page numbers as navigation, but they don't work. Do I have to code this (if so - how) or is something wrong with the datagrid? Thanks.
3
by: velu | last post by:
How to Pass Panel visibility property to other page? I have a scenario here. I have created a user control that has a button and panel visible set to false. When I click the button if the...
1
by: sahay | last post by:
Retain a visitor-specified value in a select option after page submition
7
by: tomari | last post by:
hi all, can u please tell me what is the code to select a value from a dropdownlist ..and then passs this value to the other page .... along with it i have to take some details from the database...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.