DataGridView.OnRowEnter(DataGridViewCellEventArgs) Metoda

Definicja

RowEnter Zgłasza zdarzenie.

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

Element DataGridViewCellEventArgs zawierający dane zdarzenia.

Uwagi

Podnoszenie zdarzenia wywołuje program obsługi zdarzeń przez delegata. Aby uzyskać więcej informacji, zobacz Obsługa i podnoszenie zdarzeń.

Metoda OnRowEnter umożliwia również klasom pochodnym obsługę zdarzenia bez dołączania delegata. Jest to preferowana technika obsługi zdarzenia w klasie pochodnej.

Uwagi dotyczące dziedziczenia

Podczas zastępowania OnRowEnter(DataGridViewCellEventArgs) w klasie pochodnej należy wywołać metodę klasy OnRowEnter(DataGridViewCellEventArgs) bazowej, aby zarejestrowani delegaci odbierali zdarzenie.

Dotyczy

Zobacz też