asp.net.ph

GridView.RowUpdated Event

System.Web.UI.WebControls Namespace   GridView Class


.NET Framework version 2.0

Occurs when an Update command button within a GridView control is clicked, but after the update operation.

[ VB ]
Public Event RowUpdated As GridViewUpdatedEventHandler

[ C# ]
public event GridViewUpdatedEventHandler RowUpdated;

[ C++ ]
public: __event GridViewUpdatedEventHandler* RowUpdated;

In [ JScript ], you can handle the events defined by a class, but you cannot define your own.

Remarks

The RowUpdated event is raised whenever an Update button associated with an item in the GridView control is clicked, but after the GridView control updates the record.

This allows you to provide an event-handling method that performs a custom routine, such as checking the results of an update operation, whenever this event occurs.

Event Data

Information related to the RowUpdated event is passed via a GridViewUpdatedEventArgs object to the method assigned to handle the event. The following GridViewUpdatedEventArgs properties provide information specific to this event.

Property Description
AffectedRows Gets the number of rows affected by the update operation.
Exception Gets the exception ( if any ) that was raised during the update operation.
ExceptionHandled Gets or sets a value indicating whether an exception that was raised during the update operation was handled in the event handler.
KeepInEditMode Gets or sets a value indicating whether the GridView control should remain in edit mode after an update operation.
Keys Gets a dictionary that contains the original key field name/value pairs for the updated record.
NewValues Gets a dictionary that contains the new field name/value pairs for the updated record.
OldValues Gets a dictionary that contains the original non-key field name/value pairs for the updated record.

See Also

GridView Members   Allowing Users to Edit Rows in a GridView Control Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph