Gridview inside Gridview little problems...

C

Carlos Albert

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
 
C

Carlos Albert

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.
 

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,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top