I''m trying to design a master-detail form by adding two GDBGs. The following codes from users guide will work well.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
´fill the dataset with the two tables
´add a DataRelation to the dataset
Dim dr As DataRelation = New
´set up the datasources
Me.masterGrid.DataSource = Me.DataSet11.Tables("Customers")
Me.detailsGrid.DataSource = Me.DataSet11.Tables("Customers")
Me.detailsGrid.DataMember = "CustomersToOrders"
However, after I add a dockingManager and enable masterGrid to be dockable, the detailGrid never respond to the row changes in the masterGrid any more.
ADAdministrator Syncfusion Team February 17, 2005 04:31 AM
In order for the master-details to work, both grid''s need to be using the same binding context. Normally, the grid takes its binding context from its parent.
Try handling the DockedStateChanged event and force the two grids to have teh same BindingContext.