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.
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
Hi again David,
bands(0).bands(0) does'nt exist as part of Me.WebHierarchicalDataGrid1.Bands(0).Bands(0) on my machine for some reason.
regards,
craig wight.
Hey,
I have two questions that should help us out. The first is whether you have defined the bands on the aspx page or created them in code behind OR are using AutoGenerateBands = true. The second is where exactly you are trying to access your bands. In the page load or a grid server event? You could attach sample code for you code behind for us to look at as well.
thanks,Dave
I forgot to mention, I am using an UltraWebGrid with the WebHierarchical data source.
Craig,
csnm1 said:I forgot to mention, I am using an UltraWebGrid with the WebHierarchical data source.
I'm moving this thread to the WebGrid forum.