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.OnNewRowNeeded Método

Raises the NewRowNeeded event.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (em System.Windows.Forms. dll)
protected virtual void OnNewRowNeeded(
	DataGridViewRowEventArgs e
)

Parâmetros

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

The row indicated by the Row property of e does not belong to this DataGridView control.

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

The OnNewRowNeeded 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 OnNewRowNeeded in a derived class, be sure to call the base class's OnNewRowNeeded method so that registered delegates receive the event.

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

Contribuições da comunidade

ADICIONAR
A Microsoft está realizando uma pesquisa online para saber sua opinião sobre o site do MSDN. Se você optar por participar, a pesquisa online lhe será apresentada quando você sair do site do MSDN.

Deseja participar?
© 2013 Microsoft. Todos os direitos reservados.