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.
please take a look at: http://dnchannel.blogspot.com/2007/07/nested-gridviews-and-hiding.html
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.
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.
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.