Nested GridViews In UserControls.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mr Nobody

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


  • Munna

    #2
    Re: Nested GridViews In UserControls.

    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

    Comment

    • Lucas Hernandez

      #3
      Re: Nested GridViews In UserControls.

      In case you haven't found an answer ....
      go to:


      "Mr Nobody" <mrnobody2u@goo glemail.comwrot e in message
      news:ek6R0Zj7IH A.4988@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...
      >
      >

      Comment

      Working...