Gridview inside Gridview little problems...

Discussion in 'ASP .Net' started by Carlos Albert, Dec 6, 2005.

  1. Hi everyone

    I'm working with some nested gridviews. The problem I have is that the
    'child' gridview is populated by a select... that depends of the content of
    a session().

    So far, no luck in getting the session value inside the SelectCommand=
    Always end with different erros, seems doesn't like the <% server code %>
    inside the SelectCommand at all. Tried also with @value, and other ways, no
    luck at all.

    So I was thinking of another alternative, that is show/hide columns from the
    codebehind. How can it be done? I mean, I know how to show/hide columns, but
    how can I access to the properties of the 'child' gridview? =S
     
    Carlos Albert, Dec 6, 2005
    #1
    1. Advertising

  2. Ok, made it work.
    I declared a public (string) from the codebehind and generated _ALL_ the
    SelectCommand in there.
    The I just used SelectCommand="<%# SelectCommand_CAT %>">, now it works.
    Seems that it doesn't like to concatenate. Lol.

    Tnx everyone.
    "Carlos Albert" <nadie@ningunlugar> escribió en el mensaje
    news:u$sY5Bn%...
    > Hi everyone
    >
    > I'm working with some nested gridviews. The problem I have is that the
    > 'child' gridview is populated by a select... that depends of the content

    of
    > a session().
    >
    > So far, no luck in getting the session value inside the SelectCommand=
    > Always end with different erros, seems doesn't like the <% server code %>
    > inside the SelectCommand at all. Tried also with @value, and other ways,

    no
    > luck at all.
    >
    > So I was thinking of another alternative, that is show/hide columns from

    the
    > codebehind. How can it be done? I mean, I know how to show/hide columns,

    but
    > how can I access to the properties of the 'child' gridview? =S
    >
    >
     
    Carlos Albert, Dec 6, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. richard

    2 little problems

    richard, Oct 2, 2006, in forum: HTML
    Replies:
    6
    Views:
    343
    richard
    Oct 2, 2006
  2. Henk

    Problems with my little c-program

    Henk, Oct 4, 2005, in forum: C Programming
    Replies:
    14
    Views:
    565
    Michael Wojcik
    Oct 10, 2005
  3. HockeyFan
    Replies:
    1
    Views:
    1,000
    Masudur
    Jul 4, 2007
  4. ThaDoctor
    Replies:
    3
    Views:
    387
    Alan Woodland
    Sep 28, 2007
  5. Daniel
    Replies:
    1
    Views:
    214
    Bart van Ingen Schenau
    Jul 9, 2013
Loading...

Share This Page