GridView not updating

D

David C

I have a new GridView that has an SQL table as a datasource. The primary
key is included but not visible. When I click the Edit link button, change
a column's data and click Update, nothing changes and I do not get any
error. The UPDATE has a WHERE clause of "WHERE ID = @ID" and the ID field is
in the Update Parameters. Can anyone help me resolve this? I am doing the
same thing with other tables and they are updating fine. Thanks.

David
 
D

David C

I figured it out but it is wierd. I was doing a DataBind() on the gridview
in page load. Once I took that out it worked. That is strange.

David
 

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,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top