DataGridView.OnUserDeletedRow(DataGridViewRowEventArgs) Método

Definición

Genera el evento UserDeletedRow.Raises the UserDeletedRow event.

protected:
 virtual void OnUserDeletedRow(System::Windows::Forms::DataGridViewRowEventArgs ^ e);
protected virtual void OnUserDeletedRow (System.Windows.Forms.DataGridViewRowEventArgs e);
abstract member OnUserDeletedRow : System.Windows.Forms.DataGridViewRowEventArgs -> unit
override this.OnUserDeletedRow : System.Windows.Forms.DataGridViewRowEventArgs -> unit
Protected Overridable Sub OnUserDeletedRow (e As DataGridViewRowEventArgs)

Parámetros

e
DataGridViewRowEventArgs

Objeto DataGridViewRowEventArgs que contiene los datos del evento.A DataGridViewRowEventArgs that contains the event data.

Comentarios

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 OnUserDeletedRow también permite que las clases derivadas controlen el evento sin adjuntar ningún delegado.The OnUserDeletedRow 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 OnUserDeletedRow(DataGridViewRowEventArgs) en una clase derivada, asegúrese de llamar al método OnUserDeletedRow(DataGridViewRowEventArgs) de la clase base para que los delegados registrados reciban el evento.When overriding OnUserDeletedRow(DataGridViewRowEventArgs) in a derived class, be sure to call the base class's OnUserDeletedRow(DataGridViewRowEventArgs) method so that registered delegates receive the event.

Se aplica a

Consulte también: