GridView.OnRowDeleted(GridViewDeletedEventArgs) GridView.OnRowDeleted(GridViewDeletedEventArgs) GridView.OnRowDeleted(GridViewDeletedEventArgs) GridView.OnRowDeleted(GridViewDeletedEventArgs) Method

Definición

Genera el evento RowDeleted.Raises the RowDeleted event.

protected:
 virtual void OnRowDeleted(System::Web::UI::WebControls::GridViewDeletedEventArgs ^ e);
protected virtual void OnRowDeleted (System.Web.UI.WebControls.GridViewDeletedEventArgs e);
abstract member OnRowDeleted : System.Web.UI.WebControls.GridViewDeletedEventArgs -> unit
override this.OnRowDeleted : System.Web.UI.WebControls.GridViewDeletedEventArgs -> unit
Protected Overridable Sub OnRowDeleted (e As GridViewDeletedEventArgs)

Parámetros

Comentarios

El RowDeleted evento se desencadena cuando se hace clic en el botón eliminar de una fila, pero GridView después de que el control elimine la fila.The RowDeleted event is raised when a row's Delete button is clicked, but after the GridView control deletes the row. Esto le permite proporcionar un método de control de eventos que realiza una rutina personalizada, como comprobar los resultados de la operación de eliminación, siempre que se produzca este evento.This enables you to provide an event-handling method that performs a custom routine, such as checking the results of the delete operation, whenever this event occurs.

Cuando se genera un evento, se invoca el controlador de eventos a través de un delegado.Raising an event invokes the event handler through a delegate. Para obtener más información, consulte controlar y provocar eventos.For more information, see Handling and Raising Events.

El método OnRowDeleted también permite que las clases derivadas controlen el evento sin adjuntar ningún delegado.The OnRowDeleted method also allows derived classes to handle the event without attaching a delegate. Ésta es la técnica preferida para controlar el evento en una clase derivada.This is the preferred technique for handling the event in a derived class.

Notas a los desarrolladores de herederos

Al reemplazar OnRowDeleted(GridViewDeletedEventArgs) en una clase derivada, asegúrese de llamar al método OnRowDeleted(GridViewDeletedEventArgs) de la clase base para que los delegados registrados reciban el evento.When overriding OnRowDeleted(GridViewDeletedEventArgs) in a derived class, be sure to call the base class's OnRowDeleted(GridViewDeletedEventArgs) method so that registered delegates receive the event.

Se aplica a

Consulte también: