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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top