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
690
Multiple Sibling Band from BindingList
posted

Hi!

I've got an interesting problem regarding Bands. I've seen the UltraGrid produce this before, unintentionally, when testing some binding, but now I want to use this behavior to perform a linear grouping.

The structure is simple: Invoice > Invoice Item, that's it.

Its currently a BindingList(Of Invoice) with a child band resolved from BindingList(Of InvoiceItem)

At the moment, it's being presented as:

Invoice 1

+-- InvoiceItem 1 - 1
     InvoiceItem  1 - 2
     InvoiceItem  1 - 3
     InvoiceItem 2 - 1
     InvoiceItem  2 - 2
     InvoiceItem 2 - 3
Invoice 2 etc

I'd like it to follow this pattern of multiple bands (therefore I can produce running totals etc)

BAND (0)

Invoice 1
BAND 1
   InvoiceItem  1 - 1
   InvoiceItem  1 - 2
   InvoiceItem  1 - 3
BAND 1 (again)
   InvoiceItem  2 - 1
   InvoiceItem  2 - 2
   InvoiceItem  2 - 3

I've tried BindingList(Of Invoice) with a child band set resolved from BindingList(Of BindingList(Of InvoiceItem)) but with no luck.

Any ideas?

Thanks, Tom