Home Forums WinForms controls Xceed Grid for WinForms Exception "Child list for field RelationParentChild cannot be created" in SetDataBinding on DetailGrid Reply To: Exception "Child list for field RelationParentChild cannot be created" in SetDataBinding on DetailGrid

Xceed Support
Member
Post count: 5658

Hi Dietmar,

I would have to see all your code where it concerns
binding to the GridControl. You can always refer to the online documentation
which describes in full detail how to add the Master/Detail feature to the Grid
for .NET. Just by looking at the simple code snippet in your post, it seems as
though everything is ok. You can always send us a sample application (you can
use the Northwind Database which we provide for you as a DLL
Xceed.Grid.Samples.SampleData) and we can see what is exactly going on.
You can send it to support@xceed.com and please make a reference to this post
so that we know it is you. If you want to retrace your steps
instead, you can refer to the information below that I have gathered for you.
 
http://doc.xceedsoft.com/products/XceedGrid/Building_a_bound_hierarchical_master_detail_grid.html

You can also create a DataSet with the relation
already done for you and
just bind your DataSet to the DataSource of your DataGridControl instance. An
example of this can be found in the MasterDetailGrid sample application.

C:\Xceed Samples\Xceed Grid for .NET
v3.9\CSharp\MasterDetailSimple
 
If you want to set the relation in code behind, you can do as in the regular
MasterDetail sample application which does it for you in the LoadSynchronizedGrid
method in the MasterDetail class.

C:\Xceed Samples\Xceed Grid for .NET
v3.9\CSharp\MasterDetail 

Imported from legacy forums. Posted by Marc [Xceed] (had 949 views)