Click to See Complete Forum and Search --> : DataSet constraint


elefrancois
April 9th, 2003, 11:49 AM
Hi folks,
I have a DataSet with multiple tables and relations.
I fill the Dataset with Data and then I call

aDataSet.EnforceConstraints = true;

It throws an error saying.

"Failed to enable constraint. One or more rows contains value violation... bla bla bla"

I would like to know what DataSet or DataRelation or DataRow property I can access to view what relation failed.

thanks

..Etienne

hellomadhu
April 10th, 2003, 07:01 AM
after each dataadaptor.fill statement

enter the "aDataSet.EnforceConstraints = true;" statement

so that u can identify where the error occurs easily.