Updating DataTable with calculated column

L

Luca Giusti

Hi all,

i've a problem trying to update a DataTable with a
calculated column added at runtime. The error i receive
is:

Cannot change readonly property for the expression column

The only way to avoid this, is to delete the SELECT
statement added by the DataAdapter wizard to the
UpdateCommand SQL string.

Alas, i need this select to know the primary key assigned
by SQL Server (this key will be foreign key for other
entities).

Any of you got any idea?

Thanx you very much,

Luca Giusti
 

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