GridView update using ObjectDataSource

S

Steve Kershaw

Hi,
I have a problem in which I'm using a GridView with an
ObjectDataSource as a data source. The problem is that when I use the
ObjectDataSource UPDATE routine I must have the key column displayed
(and editable) in the GridView! This is a problem because this key
column is the database table key value and can't be changed. If I
don't display the key column or if I set it as ReadOnly then the
ObjectDataSource UPDATE routine dosen't see the key and the WHERE
clause fails.. As in:

UPDATE tablename
Set .....
Where key_column = @key_column

Thanks in advance for your help.
Steve
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top