DataGridView.OnDefaultValuesNeeded(DataGridViewRowEventArgs) Método

Definição

Eleva o DefaultValuesNeeded evento.

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

Parâmetros

e
DataGridViewRowEventArgs

A DataGridViewRowEventArgs que contém os dados do evento.

Observações

Levantar um evento invoca o gestor de eventos através de um delegado. Para mais informações, consulte Manuseio e Levantamento de Eventos.

O OnDefaultValuesNeeded método também permite que classes derivadas tratem do evento sem anexar um delegado. Esta é a técnica preferida para lidar com o evento numa classe derivada.

Notas para Herdeiros

Ao substituir OnDefaultValuesNeeded(DataGridViewRowEventArgs) uma classe derivada, certifique-se de chamar o método da OnDefaultValuesNeeded(DataGridViewRowEventArgs) classe base para que os delegados registados recebam o evento.

Aplica-se a

Ver também