Rowupdating in gridview in asp net example
A Grid View Updated Event Args object is passed to the event-handling method, which enables you to determine the number of rows affected and any exceptions that might have occurred.
You can also indicate whether the exception was handled in the event-handling method by setting the On Row Updated Row Canceling Edit On Row Canceling Edit Row Deleted On Row Deleted Row Deleting On Row Deleting Row Editing On Row Editing Row Updating On Row Updating Grid View Class System.
A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.
To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.
whether a template field has information of "Command" or "String" so that later data retrieval and data binding of that particular child control will be made accordingly.
A "Command" (Edit, Delete, and Insert) requires instantiation in the Button control while he "String" requires a Label or Text Box.
event is raised when a row's Update button is clicked, but before the Grid View control updates the row.
If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]
Every one can use it to compare the new value with old ones.