J
Jan Nielsen
Hi all
I have a problem with a master detail form that I can't find any solution to
(and I have already searched both the help files and the Internet)
I use Visual Studio 2002 and VB.Net
I have created a typed dataset with two tables (Person and Remarks) and a
master-detail relationship (PersonRemarks)
I have a form with textboxes showing the master row(s).
I have a datagrid showing the detail rows.
I bind the master textboxes like this:
Me.txtFirstname.DataBindings.Add(New System.Windows.Forms.Binding("Text",
Dataset.Persons.DefaultView, "ChristianName"))
(I use the .Defaultview because it makes sorting and filtering much easier.)
Now how do I bind the datagrid so it only shows the detail records?
I tried something like this
RemarksGrid.DataSource = DataSet
RemarksGrid.DataMember = "PersonRemarks"
But it wont work
Tia
Jan Nielsen
I have a problem with a master detail form that I can't find any solution to
(and I have already searched both the help files and the Internet)
I use Visual Studio 2002 and VB.Net
I have created a typed dataset with two tables (Person and Remarks) and a
master-detail relationship (PersonRemarks)
I have a form with textboxes showing the master row(s).
I have a datagrid showing the detail rows.
I bind the master textboxes like this:
Me.txtFirstname.DataBindings.Add(New System.Windows.Forms.Binding("Text",
Dataset.Persons.DefaultView, "ChristianName"))
(I use the .Defaultview because it makes sorting and filtering much easier.)
Now how do I bind the datagrid so it only shows the detail records?
I tried something like this
RemarksGrid.DataSource = DataSet
RemarksGrid.DataMember = "PersonRemarks"
But it wont work
Tia
Jan Nielsen