Home Forums WinForms controls Xceed Grid for WinForms Child list for field Master_Detail cannot be created Reply To: Child list for field Master_Detail cannot be created

User (Old forums)
Member
Post count: 23064

The following thread explains how to do this : http://xceed.com/CS/forums/thread/12723.aspx

The problem in your case is the way you set the data binding to the grids.  You need to set the DataSource to the table, and not only to the DataSet, because the DetailGrid will not be able to find the table it needs to bind to for the relation to work.

e.g. :

grid.SetDataBindings( ds.Tables(0), “” )

det.SetDataBindings( ds.Tables(0), ds.Relation(0).RelationName )

Imported from legacy forums. Posted by André (had 1590 views)