Nested GridViews In UserControls.

M

Mr Nobody

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...
 
M

Munna

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top