DataTable Primary Key Not Remove?

L

localhost

What makes a PrimaryKey in a DataTable sometimes removable and other
times throw an Exception when the attempt is made?

Thanks.
 
S

Scott M.

If you are autogenerating the field value in the DataTable, you can't remove
the value. If you read it in from the data source, you may be able to
remove it depending on what information about the original table you brought
in.
 

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

Top