Datagrid and SqlCommandBuilder

  • Thread starter microsoft.private.windows.netserver.setup
  • Start date
M

microsoft.private.windows.netserver.setup

Hello everyone, I hope all is well. I have a problem updating a dataset to
the SQL server database. I creates the dataset from a stored procedure.
This selects the whole table. I bind it to a datagrid and use the Key from
the table, then allow the users to change the records, then create a
SqlCommandBuilder to update the database. The update fails because it is
trying to update a column in the dataset that is a formula in SQL
server(which shouldn't be updated as SQl server handles this). I was
wondering if there is a quick method to remove the column from the
sqlAdaptor update method or in the SqlCommandBuilder? I still need to have
the column in the dataset for the user to view, but just shouldn't update
it. Thanks.
 

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

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top