Asp net detailsview itemupdating e newvalues
Namely, each field in the Grid View or Details View is rendered in its editing interface; Bound Fields display a Text Box control while Check Box Fields display an enabled checkbox.
Moreover, a Command Field is added, which displays the Edit, Update, and Cancel buttons, as needed.
While the List View control provides editing support, it requires a bit more work from the page developer to get it going.
The reason is because the List View is defined by templates whereas the Grid View and Details View are defined by fields.
event is raised when an Update button within a Details View control is clicked, but before the update operation.
This allows you to provide an event handler that performs a custom routine, such as canceling the update operation, whenever this event occurs.
Many fields types, such as the Bound Field, can generate their own editing interface, but with templates the page developer is on the hook for specifying the editing interface.
Creating an editable List View control entails defining the editing interface via the and adding the Edit, Update, and Cancel buttons in the appropriate spots.
If it's bound via Linq Data Source, Sql Data Source or Object Data Source I suggest you have a look at the Updating Event. I have a Details View with a Drop Down List in an Edit Item Template, I know, pretty cool right?But when I try to Update the table with a new value from the Drop Down List the table does not get updated with the new value.The product table is not updating with the new values.I think the problem is to do with the new values from the textbox not being retrieved.