Nested GridViews In UserControls.

  • Thread starter Thread starter Mr Nobody
  • Start date Start date
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...
 
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
 
Back
Top