Hi all,
Just wondering what triggers this exception error. I keep getting it when retrieving data but not when sending data back to the database.
Here's my situation.. I have a dataset.xsd. have a few datatables and adapters. the problem occurs in my datatable that has 2 datarelation.
I was advised to turn off enforce constraints but I'm not sure it thats a good idea.
I've also tried clearing dataset before filling datatables but same error.
I'm also not doing any duplicate data for the primary key since I only get the error when filling the datatable. If i dont fill the datatable of Form_Load and directly do a BindingSource.AddNew, I am able to save that record with no errors.
any other reason why this exception occurs?
thanks.
Just wondering what triggers this exception error. I keep getting it when retrieving data but not when sending data back to the database.
Here's my situation.. I have a dataset.xsd. have a few datatables and adapters. the problem occurs in my datatable that has 2 datarelation.
I was advised to turn off enforce constraints but I'm not sure it thats a good idea.
I've also tried clearing dataset before filling datatables but same error.
I'm also not doing any duplicate data for the primary key since I only get the error when filling the datatable. If i dont fill the datatable of Form_Load and directly do a BindingSource.AddNew, I am able to save that record with no errors.
any other reason why this exception occurs?
thanks.