Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
390
Bands collection is empty on WHDS
posted

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.

Parents
No Data
Reply
  • 33839
    Suggested Answer
    posted

    Hey Craig,

    When you say your grid has three tiers, I can think of two set ups.

    Parent

         Child1

         Child 2

         Child 3

    OR

    Parent

           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

Children