Gridview update does not work

D

dbronstein88

I'm using ASP.NET 2.0. I created a table adapter using basic select,
insert, update, delete stored procedures. I created an object
datasource and bound it to the table adapter. I created a GridView and
bound it to the data source. The delete works just fine but the
Edit/Update does not work. You click on Edit and it puts the record
into edit mode. You make your changes and then when you click Update
the changes are not saved.

I created a FormView and bound it to the same datasource. The update
on the formview works fine, so it's clearly a problem with the
Gridview. Has anyone seen this before and is there a fix or workaround
for it (other than having to create something completely separate to do
the updates)?

Thanks,
Joe
 
J

Joe

Our standards are to use stored procedures for all db access. Anyway,
it doesn't matter because that's not the problem. The problem is with
the griview because the formview works just fine.

I did some playing around and I created a class and bound the
datasource to the class. On an unpdate, the gridview is passing the
old value, not the new value. So it's definitely an issue with the
gridview.
 

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,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top