473,480 Members | 3,135 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Nested GridViews In UserControls.

Hi all,

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

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
objectdatasource 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 1813
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********@googlemail.comwrote in message
news:ek**************@TK2MSFTNGP04.phx.gbl...
Hi all,

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

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
objectdatasource 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
1729
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...
0
2772
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...
1
1930
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...
2
2048
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...
1
4209
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....
0
1101
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...
3
18772
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...
0
948
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...
2
2797
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...
0
1531
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: ...
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7061
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
7110
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...
1
6763
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7030
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...
1
4799
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...
0
3015
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3011
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
210
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...

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.