When the Data Key Names property is set, the List View control automatically creates a Data Key object for each item (Grid View Row, List View Data Item) in the control.
The Data Key object contains the values of the field or fields that are specified in the Data Key Names property.
All of the controls read from the tables with no problem and switch modes with no problem, but when going into Update mode, changing something and clicking the Update button, it does not save the information to the tables. Regarding on the Form View updating problem, I think it is likely a page specific issue.
As far as I can tell, the problem is that the program is not passing updated information to the New Values array that you can access from the Item Updating event args. The code and markup looks fine to me, in fact I have a page with similar information on it that works fine. From you description, you've checked the Form View's Item Updating event and found that the Form View Event Args dosn't contains the updated values in the new values colleciton ,yes?
This provides a convenient way to access different fields of each item.
As far as I can tell, the problem is that the program is not | passing updated information to the New Values array that you can access from | the Item Updating event args. The code and markup | looks fine to me, in fact I have a page with similar information on it that | works fine. That Form View is nearly identical to one on the page that doesn't work; in fact, I copied and pasted the markup to keep the formatting correct.
I've been over the page a bunch of times and I can't see anything wrong jumping out at me. I will try to refactor to access from the Northwind database, and I'm going to attempt to rebuild the page as well. "Steven Cheng[MSFT]" wrote: Regarding on the Form View updating problem, I think it is likely a page specific issue.
I can see the control switch to edit mode properly, but after clicking the save icon, the overriden Item Updating event that I wrote does not fire. The Mode Changing and Init events fire because they specify a Handles clause.
If I set the Default Mode of the control to Edit, it works as expected, but I do not want to leave it in edit mode all the time. The Item Updating event also specifies a similar Handles clause, but it still does not fire.
Search for view itemupdating:
Net 2.0 framework, and I have a serious problem with the page I'm currently working on.