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
1590
How to determine level of band in DisplayLayout.Bands
posted

I need to determine the level of band in DisplayLayout.Bands.

for example I have the following structure:

Band1(parent) -> Band2(child) ->Band3(child)

"Band3" have level 2 of nesting .

I found  Band.Index property. Are there any other facilities to determine level of band nesting ?

 Thanks in advance. 

Parents
No Data
Reply
  • 1590
    Verified Answer
    posted

     I have to implement my own function:

            private static int CalculateBandLevel(UltraGridBand band)
            {
                int level = 0;
                while (band.ParentBand != null)
                {
                    band = band.ParentBand;
                    level++;
                }
                return level;
            }

Children
No Data