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
950
ChildBands and ColHeadersVisible
posted

Is there any way to suppress headers in ChildBands? Setting ColHeadersVisible to false on Band[0] for example only suppresses headers on that band itself but not on it's child bands.

How do you even access child bands from DisplayLayout? There is ParentBand but no ChildBands

 

 

Parents
No Data
Reply
  • 45049
    Suggested Answer
    posted

    Any band that isn't Band[0] is a child band, because the grid always has exactly one root band.  So, you can loop through the grid's DisplayLayout.Bands collection and check that band's Index - if it's 0 then you have a root band, and if it's anything else you have a child band.

Children
No Data