Link to home
Start Free TrialLog in
Avatar of dhmfg
dhmfg

asked on

Nested GridVIew-- parent and chaild will have same headers

I have to display data in nested grid views with dynamic columns. Parent and chaild will have same columns. so i donlt want to dsplay header for chaild gridview. But i want chaild grid view columns data displayed under parent grid view's corresponding columns. Plase help me with some example code.
Avatar of Daniel Junges
Daniel Junges
Flag of Brazil image

Avatar of dhmfg
dhmfg

ASKER

That is not what i want.

i am going to give you example. here is the data i want to display.

expand/collapse   jobnum     seq     qty   status1   status2   status3
          +                  20011        0        10        1            1             1
          +                  20012        0        10        2            2             2

when i click on + for jobnum 20011 i want to see the data like below

expand/collapse   jobnum     seq     qty   status1   status2   status3
          -                   20011        0        10        1            1             1
                              20011         1        2          2            2             2
                              20011         2         6         2            3             3
          +                  20012        0        10        2            2             2

This is the output i want. Status1,Status2,Status3 are dynamic columns. can u please provide some help.
hm, ...
you can set all child rows as Visible=false. Add an link on the "expand/collapse" column if childs are present. when the user click on this link the you can toggle those child rows to Visible=true.

hope tih help you.
Avatar of dhmfg

ASKER

I did put chaild rows in another grid view and when i click on + it is showing all the chaild rows. and when i click on - it is hiding the chaild grid. But the coluns are not intact with the parent row columns when i click on +. Can u please sujest any solution for this.
ASKER CERTIFIED SOLUTION
Avatar of CtrlAltDl
CtrlAltDl
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial