Hello,
I encountered some strange behaviour on the Xceed Gridcontrol for Windows Forms (v3.9), trying to implement a databound master detail
grid. I setup and loaded two datatables in a dataset with an additional Parent-Child-Relationship between these two tables added to the
dataset. The relation has been tested, there is no problem in navigating the parent-child relationship (e.g. by calling DataRow.GetChildRows,
using this relation).
When establishing the databinding in the detailgrid, an exception is thrown: "Child list for field RelationParentChild cannot be created"
The actual code looks like this:
gridControl.BeginInit();
gridControl.SetDataBinding(dataTableParent, "");
// additional code to setup grid
DetailGrid detailGrid = new DetailGrid();
// additional code to setup detail grid
gridControl.Add(detailGrid);
detailGrid.SetDataBinding(dataTableChild, relationName); // here exception occurs
I read related postings to this problem, but none seems to address this special issue, as the databinding
should be complete here.
Any ideas on this strange behaviour?
Thanks!
Dietmar