473,547 Members | 2,653 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Nested GridViews In UserControls.

Hi all,

I have two user controls that contain there respective own gridview and
objectdatasourc e.

Now when i add both controls to a page, i want gridview A's selected value
to be a parameter for gridview B's select method.

This is where my problem lies....because both gridview's are contained in
there respective user controls, when i make a selection in gridview A, the
objectdatasourc e of gridview B doesn't seem to pick up that event/value
being passed from gridview A.

Anyone shead some light on this?

Cheers...
Jul 25 '08 #1
2 1823
Hi,

Add a property selected value both your user controls...
add a public event in your user control from which you want to
collection the selected value..
raise the event from the grid when you select a row...
next subscrive the event in page...
in the event handler get the selected value from first user control
and pass it to other user control

best of luck
Munna
Jul 25 '08 #2
In case you haven't found an answer ....
go to:
http://www.webswapp.com/codesamples/...s/default.aspx

"Mr Nobody" <mr********@goo glemail.comwrot e in message
news:ek******** ******@TK2MSFTN GP04.phx.gbl...
Hi all,

I have two user controls that contain there respective own gridview and
objectdatasourc e.

Now when i add both controls to a page, i want gridview A's selected value
to be a parameter for gridview B's select method.

This is where my problem lies....because both gridview's are contained in
there respective user controls, when i make a selection in gridview A, the
objectdatasourc e of gridview B doesn't seem to pick up that event/value
being passed from gridview A.

Anyone shead some light on this?

Cheers...


Jul 25 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1734
by: Marek | last post by:
Hi, I have a Form with many UserControls on it. Some of the UserControls contain other Controls. What is the best way of notifying each of the nested controls about an event that has occured on one of them? Are there any mechanisms for broadcasting messages down the owning chain? Mark
0
2785
by: manuel.ricca | last post by:
Hello, I'm trying to create a table with 2 nested gridviews and then a DetailsView on the right. The DetailsView should show the details of the item selected in the 2nd (nested) GridView: My "master" table is like this: A1
1
1943
by: Roy | last post by:
Hey all. Below is the nested syntax on how to make a "codeless" nested gridview embedded within another gridviews templatefield column. Only problem is that it loads slow. REAL SLOW. There has to be a better way. Suggestions anyone? By the way, I'm not opposed to coding, it just seems like this should be easily doable on the aspx side of...
2
2055
by: jobs | last post by:
I have two Nested repeating Datalists with different data sources. Currently the second Datalist is set to visible=false I have an oncommand button on the first, that when selected I would like to make it's sub datalist visible. I'm a bit confused about how to refrence the instance of the second datalist.
1
4216
by: Chris | last post by:
I am creating a nested gridview as per the tutorial here (http://msdn2.microsoft.com/en-us/library/aa992038(vs.80).aspx). My gridviews work fine. I have a master gridview containing the customerid. This value is used by a a detail gridview nested within the master. This works well but when I hide the customerid the filter stops working. I...
0
1107
by: titia111 | last post by:
I am new to 2.0 and am using nested gridviews. The first one contains category information, the second is based on a query from a product table. The data is pulling correctly, but the problem is formatting. I need to display the data on separate lines and columns. I had it in tables and aligned correctly, but now that I am nesting the...
3
18776
by: ThatsIT.net.au | last post by:
I'm looking for a very simple nested grid view example. Also I have been creating tables instead of using gridview for complex tasks or just spitting out html from code. Do you recommend using nested gridviews?
0
951
by: Fabrizio | last post by:
Hi. I have two nested gridviews. The detail GV in the EditTemplate has one dropdownlist. On rowupdating of the detail GV i have to assign to my dataset fields the key and the value selected in the DDL. I'm not able to cast in the rowupdate the dropdownlist (return always null) How can i do? Thanks Fabrizio
2
2805
by: GISmatters | last post by:
I have unbound checkboxes in a nested gridview to allow multi-selection of "child" rows. For context, the parent gridview rows are for large "reports", the child rows are for various specific files comprising each report. I want the user to be able to select an arbitrary collection of report files and have them emailed by clicking an "Email...
0
1544
by: omgdork | last post by:
Hi! I'm having trouble on how to proceed with inserting data that are in parent and child gridviews. I have a gridview with nested gridviews that looks like this: http://img17.imageshack.us/img17/7442/nestedgridview1.jpg I could already display the gridview but the problem is storing the data. All the gridviews (parent and children)...
0
7437
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7703
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7797
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6032
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5362
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3473
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1923
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1050
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
748
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.