G
Guest
I have a master table named keywwordsets and two child tables keywords and
searchphrase. I created relations in the xsd file: ID to KeywordSetID in
both cases. In the underlying Access database these same relationships are
also defined.
The KeywordSet table is bound to 3 textboxes and a checkbox. The child
tables are bound to grids. The datasources are the dataset dsWKS1 and the
datamembers are the relations
KeywordSets.KeywordSetsKeywords
KeywordSets.KeywordSetsSearchPhrase
I tried several times to make a datamember that didn't start with the
KeywordSets table (somehow this seems wrong to me) but the compiler rejected
all my attempts.
When I try to open frmFullWord I get the following error
system.argumentexception
cannot create a child list for field KeywordSetsKeyword
system.windows.forms.bindingcontext.ensurelistmanager
system.windows.forms.bindingcontext.get_item
frmFullWord_Load line 679
The line is cmK = CType(BindingContext(dsWKS1,
"KeywordSets.KeywordSetsKeyword"), CurrencyManager)
in the snippet
Try
cm = CType(BindingContext(dsWKS1, "KeyWordSets"), CurrencyManager)
AddHandler cm.ItemChanged, AddressOf cm_ItemChanged
AddHandler cm.PositionChanged, AddressOf cm_PositionChanged
AddHandler daWKS.RowUpdated, AddressOf OnRowUpDated
cmK = CType(BindingContext(dsWKS1,
"KeywordSets.KeywordSetsKeyword"), CurrencyManager)
cmSP = CType(BindingContext(dsWKS1,
"KeywordSets.KeywordSetsSearchPhrase"), CurrencyManager)
daWKS.Fill(dsWKS1, "KeywordSets")
daWK.Fill(dsWKS1, "Keywords")
daWSP.Fill(dsWKS1, "SearchPhrase")
Can somebody please help me solve this error?
Thanks.
Dennis
searchphrase. I created relations in the xsd file: ID to KeywordSetID in
both cases. In the underlying Access database these same relationships are
also defined.
The KeywordSet table is bound to 3 textboxes and a checkbox. The child
tables are bound to grids. The datasources are the dataset dsWKS1 and the
datamembers are the relations
KeywordSets.KeywordSetsKeywords
KeywordSets.KeywordSetsSearchPhrase
I tried several times to make a datamember that didn't start with the
KeywordSets table (somehow this seems wrong to me) but the compiler rejected
all my attempts.
When I try to open frmFullWord I get the following error
system.argumentexception
cannot create a child list for field KeywordSetsKeyword
system.windows.forms.bindingcontext.ensurelistmanager
system.windows.forms.bindingcontext.get_item
frmFullWord_Load line 679
The line is cmK = CType(BindingContext(dsWKS1,
"KeywordSets.KeywordSetsKeyword"), CurrencyManager)
in the snippet
Try
cm = CType(BindingContext(dsWKS1, "KeyWordSets"), CurrencyManager)
AddHandler cm.ItemChanged, AddressOf cm_ItemChanged
AddHandler cm.PositionChanged, AddressOf cm_PositionChanged
AddHandler daWKS.RowUpdated, AddressOf OnRowUpDated
cmK = CType(BindingContext(dsWKS1,
"KeywordSets.KeywordSetsKeyword"), CurrencyManager)
cmSP = CType(BindingContext(dsWKS1,
"KeywordSets.KeywordSetsSearchPhrase"), CurrencyManager)
daWKS.Fill(dsWKS1, "KeywordSets")
daWK.Fill(dsWKS1, "Keywords")
daWSP.Fill(dsWKS1, "SearchPhrase")
Can somebody please help me solve this error?
Thanks.
Dennis