• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 779
  • Last Modified:

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.
0
dhmfg
Asked:
dhmfg
  • 2
  • 2
1 Solution
 
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
 
CtrlAltDlCommented:
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now