GridView not updating

  • Thread starter Thread starter David C
  • Start date Start date
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
 
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
 
Back
Top