Hello,
I have a grid bound to a WHDS. The grid has three tiers. So I should be able to access the bands with bands(0), bands(1) and bands(2) shouldn't I?
It just that bands(1) and bands(2) are always empty so I can't access each column within that band on the Initialize Layout event.
What am I doing wrong?
I am using version 9.2.20092.1003.
Thanks
Regards,
Craig Wight.
Hi David,
Thanks for your reply.
It is the second arrangment:-
Parent Child GrandchildI am confused as to how I access the columns in the child and the grandchild row. Presently, bands[0] returns the column information for the Parent only. How can I access the child and grandchild?
Thanks again.
Craig
Hey Craig,
When you say your grid has three tiers, I can think of two set ups.
Parent
Child1
Child 2
Child 3
OR
Child
Grandchild.
If you have the first setup, WebHierarchicalDataGrid1.Bands should have all 3 children. If it is the second setup, only the child is in the top grid's band collection. If you wanted to access the grandchild, you'd have to do this.WebHierarchicalDataGrid1.Bands[0].Bands[0]. You then can access the columns or do whatever. Hopefully this confusion was the problem. Let us know.
regards,David Young