Edit/Update not saving data

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
tqdesign
Posts: 1
Joined: Tue 02 May 2006 16:40

Edit/Update not saving data

Post by tqdesign » Tue 02 May 2006 16:45

This is the code that I have. Whenever I edit then update, it does not save the data to the file. Can someone tell me what I am doing wrong?

Thanks,




Updating Data Using GridView

















"
EnableCaching="True" SelectCommand="SELECT id, title, svalue FROM serving"
ProviderName=""
UpdateCommand="UPDATE serving SET title = ?, svalue = ? WHERE id = ?">










Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Wed 03 May 2006 07:53

Try to add

Code: Select all

DataKeyNames="id"
to the definition of GridView component:

Code: Select all

 

Post Reply