Home Forums WinForms controls Xceed Grid for WinForms Hi Regarding masterdetail grid Reply To: Hi Regarding masterdetail grid

User (Old forums)
Member
Post count: 23064

You need to set the DataSource of both the Grid and DetailGrid to the same, and set the DataMember of the DetailGrid to the relationship.

e.g. :

grid.DataSource = dsTables(0)

detail.DataSource = ds.Tables(0)
detail.DataMember = “hello” ‘or whatever the name of the relationship

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