Expandir Minimizar
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
Tradução
Original
Este tópico ainda não foi avaliado como - Avalie este tópico

DataGridView.OnCellEnter Método

Raises the CellEnter event.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (em System.Windows.Forms. dll)
protected virtual void OnCellEnter(
	DataGridViewCellEventArgs e
)

Parâmetros

e
Tipo: System.Windows.Forms.DataGridViewCellEventArgs
A DataGridViewCellEventArgs that contains the event data.
ExceçãoCondição
ArgumentOutOfRangeException

The value of the ColumnIndex property of e is greater than the number of columns in the control minus one.

-ou-

The value of the RowIndex property of e is greater than the number of rows in the control minus one.

Disparar um evento chama o manipulador de eventos por meio de um representante.Para obter maiores informações, veja Gerando um evento.

The OnCellEnter method also allows derived classes to handle the event without attaching a delegate.This is the técnica Preferred for Manipulação the evento in a classe derivada.

OBSERVAÇÕES PARA Inheritors:

When overriding OnCellEnter in a derived class, be sure to call the base class's OnCellEnter method so that registered delegates receive the event.

Isso foi útil para você?
(1500 caracteres restantes)

Contribuições da comunidade

ADICIONAR
© 2013 Microsoft. Todos os direitos reservados.