Disabling EnforceConstraints

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

Is there a way to disable EnforceConstraints on a dataset? I have this
statement ds.EnforceConstraints = true in MyDataSet.Designer.vb but I am
reluctant to set it to false as the designer may overwrite the code.

I only wish to do it temporarily to speed up fill operations.

Thanks

Regards
 
Hi

Is there a way to disable EnforceConstraints on a dataset? I have this
statement ds.EnforceConstraints = true in MyDataSet.Designer.vb but I am
reluctant to set it to false as the designer may overwrite the code.

I only wish to do it temporarily to speed up fill operations.

Thanks

Regards

You can set it to false just before the call to
DataAdapter.Fill(yourDataSet) call in your code
 
Back
Top