What are the reasons AddRelation would not return a GridHierarchyLevel?
I am binding to a Ds which I have constructed "by hand" and used a constant for the relation name. When I use the same constant in the call the AddRelation I get back null. I browsed the Ds after its bound to the grid to verify that the DataRelation is indeed in the collection and is named correctly. So are there other reasons this call might return null?
Did you set the relation name correctly?
ds.Relations.RelationName = "Products_OrderDetails";
GridHierarchyLevel hlProducts_OrderDetails = gridBinder.AddRelation("Products_OrderDetails");
Other than this I can't tell without looking at some code why it returns null. I would need a sample project than. It is best if you create a support incident then.
ANAndrewMay 17, 2003 02:11 PM UTC
I just found that binder.AddRelation() didn't initialize GridHierarchyLevel if there're no data in related tables. Is there a workaround to fix that?
AdministratorMay 17, 2003 07:22 PM UTC
Sorry, we have no workaround for that. But this problem will be fixed in the 1.6 release which should be really out very soon.