Introduction: In this article i will explain how to Edit List View records, how to Update List View records and how to Cancel List View Update operation. Set List View event property On Item Editing="lv Employee_Item Editing".
To check if the name of the planet is changed, you can compare the Title column before the changes with the Title of the changed item.
The changed values can be retrieved from the After Properties of the incoming properties argument.
If you do it in Item Updating, it wouldn't be available in Item Updated so you would be stuck with the same issue.
If you try to do it before both events, you would have your properties yet to access the list items.
Now click on Edit button you will see the following output.
You can also use event receivers to validate the data that the user wants to change.This walkthrough is based on the first one where I have a custom list with planets of our solar system.Users can change data like the number of moons or the distance to the earth, but they are not able to change the name of the planet.You can populate the Edit Item Template with data-bound controls to enable users to modify values for the item.To switch from edit mode to display mode, set this property to -1.Developing a Sharepoint application would have all the fun of a video game, if only you had infinite lives.