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.
dhmfgAsked:
Who is Participating?
 
CtrlAltDlConnect With a Mentor Commented:
I've been using the CompleteGridView control for about a year now and I've never used a GridView since.

http://code.msdn.microsoft.com/CompleteGridView
0
 
Daniel JungesCommented:
0
 
dhmfgAuthor Commented:
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.
0
 
Daniel JungesCommented:
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.
0
 
dhmfgAuthor Commented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.