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
570
WebGrid & hierarchical data
posted

Hi all !
I've created an example with a WebGrid with hierarchical data as described in the article

 http://help.infragistics.com/NetAdvantage/NET/Current/CLR2.0/?target=WebGrid.html

The example works fine, but when trying to access the child band, an exception will be thrown.

 this.UltraWebGrid1.Band[0].Columns.All  // works fine
 this.UltraWebGrid1.Band[1].Columns.All  // throws an exception


It seams, that the child band is absolute unknown for the WebGrid, because calling

 this.UltraWebGrid1.Bands.Count
 
returns 1, and not 2 !

Any hint or idea is welcome. Thanks in advance.

Regards,
Claus

Parents
  • 45049
    posted

    The link you've provided leads to a landing page, so I'm not sure which article you're using as your guide. 

    When are you checking this value?  Are you databinding the grid?

    Most likely, at the time you're checking this value, the second band may not exist yet.

Reply Children