Re: Master - Detail problem... by Jan
Jan
Fri Nov 21 12:11:03 CST 2003
Hi Miha
Thanks for answering
tblPersontblRemarks is not a datatable but a one-many relation between the
tables tblperson and tblremarks. (One person - Many remarks)
No, there is no booleans in neither of the tables.
I am using
Microsoft Development Environment 2002 version 7.0.9466 and
Microsoft .Net framework 1.1 version 1.0.3705
Best regards
Jan
"Miha Markic" <miha at rthand com> skrev i en meddelelse
news:OHzj5WEsDHA.1196@TK2MSFTNGP12.phx.gbl...
> Hi Jan,
>
> Strange.
> What does your DataTable tblPersontblRemarks looks like?
> Does it have a boolean column?
> Which VS.NET version are you using?
>
> "Jan Nielsen" <ReplyInNewsgroup@tiscali.dk> wrote in message
> news:uEUP4PEsDHA.3196@TK2MSFTNGP11.phx.gbl...
> > Hi
> > I have a typed dataset with a Master table (tblPersons) and a Detail
table
> > (tblRemarks).
> > I have a Winform which shows person data (master data)
> > I would like to have a datagrid showing the detail data.
> > So I try to bind the datagrid like this:
> > DataSource: MyDataSet
> > And try to set DataMember to: tblPersontblRemarks
> > But I get an error:
> >
> > "Invalid Property Value:"
> > "DataBinding could not find a row in the list that is suitable for all
> > bindings"
> >
> > And then when I press OK
> > I receive another error:
> > "Datasources of type System.DBNull are not supported.
> > Parameter name: Datasource"
> >
> > If I rightclick on a dataadapter and select Preview Data... it works
fine.
>
> DataAdapter has nothing to do with this error..
>
> --
> Miha Markic - RightHand .NET consulting & software development
> miha at rthand com
>
>