Detailsview not updating gridview

Details View control always stayed on the Edit Mode.

I solve this problem by canceling the Item Updating event, changing the mode, and rebinding the details view data source.

I think the problem is to do with the new values from the textbox not being retrieved.

detailsview not updating gridview-60

I wish there was an easier way to do this or at least more documentation on Microsoft’s website.

Hi While working with Details View control I have come up with few resources when you want to perform update to the data within Details View using buttons out side of Details View control.

Basically I have a details view with product information in it, when the user clicks edit it goes into edit mode when I change any of the fields and click update it updates but with the old values.

Here is my detailsview: I tried adding a label to my page and then once updated Name had been assigned the value of the textbox I tried assigning that value to the label and it printed out the old product name not the one in the textbox.

P(1);var d="append Child",g="create Element",i="src",k=h[g]("div"),l=k[d](h[g]("div")),f=h[g]("iframe"),n="document",p;k.style.display="none";e.insert Before(k,e.first Child).id=o "-" j;f.frame Border="0";f.id=o "-frame-" j;/MSIE[ ] 6/.test(Agent)&&(f[i]="javascript:false");f.allow Transparency="true";l[d](f);trycatch(s)trycatch(t)a.

This example shows how to edit and update records in a Grid View in ASP. This example is helpful in situations where an administrator needs to edit several records from the database.

For demonstration I have created a database (named Database.mdf) in which we have a table named tbl_Employee.

changing from VS2003 Data Grid to VS2010 Grid View; still on SQL Server 2000 so the wizards for autogenerating the code are not compatible. I get an Argument Out Of Range Exception on "row To Update("Quote DQty") = Quote List.

But I can't see why it wouldn't be bringing back the new textbox values.

Tags: , ,