DataGridView.OnRowUnshared(DataGridViewRowEventArgs) Método

Definición

Genera el evento RowUnshared.Raises the RowUnshared event.

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

Parámetros

e
DataGridViewRowEventArgs

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

Excepciones

La fila indicada por la propiedad Row de e no pertenece a este control de DataGridView.The row indicated by the Row property of e does not belong to this DataGridView control.

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

Se aplica a

Consulte también: