DataGridView.OnRowEnter(DataGridViewCellEventArgs) Metoda

Definice

RowEnter Vyvolá událost.

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

Parametry

e
DataGridViewCellEventArgs

A DataGridViewCellEventArgs obsahující data události.

Poznámky

Vyvolání události vyvolá obslužnou rutinu události prostřednictvím delegáta. Další informace naleznete v tématu Zpracování a vyvolávání událostí.

Metoda OnRowEnter také umožňuje odvozené třídy zpracovat událost bez připojení delegáta. Toto je upřednostňovaná technika pro zpracování události v odvozené třídě.

Poznámky pro dědice

Při přepsání OnRowEnter(DataGridViewCellEventArgs) v odvozené třídě nezapomeňte volat metodu základní třídy OnRowEnter(DataGridViewCellEventArgs) , aby zaregistrovaní delegáti obdrželi událost.

Platí pro

Viz také