Hello,
We have a datasource with 3 levels, each of them is a IBindingList of 3 different classes. Ex:
L1: Property1A, Property1B...
L2: Property2A, Property2B....
L3: Property3A, Property3B...
The problem we face is that the deepest (3rd) band associated with L3 is generated by the grid with the fields of L2 class! but, if debugging we check the L3 band rows, its ListObjects are of L3 type. Any idea what could be happening in here?
Thanks
I can't see any way that the grid could mix up two bands and I've never heard any other reports of this happening.
So my first guess is that this is a problem with your implementation of IBindingList.Are you implementing IBindingList yourself? Or are you using an existing IBindingList class like BindingList<T>.
Are you also implementing other interfaces like ITypedList?
If you are writing your own IBindingList implementation then my advice would be to avoid that if you possibly can. This interface is deceptively complex. It's much easier and more reliable to derive a class from BindingList<T> then to implement the interface yourself.