Solution was easy
the child BindingSource.DataSource should be set to the master
bindingsource (not to the dataset)
and the child BindingSource.DataMember should be set to the name of
the DataRelation
>
> // Build DataSet
> dataset.Tables.Add(tblMaster);
> dataset.Tables.Add(tblChild);
> dataset.Relations.Add("RELATION", tblMaster.Columns["DelSchedID"], // <<<<<<
> tblChild.Columns["DelSchedID"]);
>
> // Build Master BindingSource
> srcMaster.DataSource = dataset;
> srcMaster.DataMember = "Master";
>
> // Build Child BindingSource
> srcChild.DataSource = srcMaster; // <<<<
> srcChild.DataMember = "RELATION"; // <<<<
>
> // Bind Controls
> gridMaster.DataSource = srcMaster;
> gridChild.DataSource = srcChild;
>
|