Can't Add Constraint to DataTable

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I am fiddling around with a DataSet and ran into some problems. I was manipulating Constraints to allow working with a partially filled (typed) DataSet. When I try to re-add a (ForeignKey) constraint to a DataTable I get the following message in a InvalidConstraintException

"This constraint cannot be added since ForeignKey doesn't belong to table Xxxxxx

I'm a little suspicious of the 'ForeignKey' mentioned in the message. I suspect this was meant as a indication of the DataColumn name but I have no column that's called 'ForeignKey' (Northwind). Nomatter what table I try, the message is always the same (except for the Xxxxxxx that does tell te correct table name)

Anybody any ideas? Is this a bug or a feature
Any suggestions would be welcome

Grt
Marc Jacobi
 
Back
Top