DataGridView.OnRowValidated(DataGridViewCellEventArgs) Metoda

Definicja

RowValidated Zgłasza zdarzenie.

protected:
 virtual void OnRowValidated(System::Windows::Forms::DataGridViewCellEventArgs ^ e);
protected virtual void OnRowValidated (System.Windows.Forms.DataGridViewCellEventArgs e);
abstract member OnRowValidated : System.Windows.Forms.DataGridViewCellEventArgs -> unit
override this.OnRowValidated : System.Windows.Forms.DataGridViewCellEventArgs -> unit
Protected Overridable Sub OnRowValidated (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 OnRowValidated 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 OnRowValidated(DataGridViewCellEventArgs) w klasie pochodnej należy wywołać metodę klasy OnRowValidated(DataGridViewCellEventArgs) bazowej, aby zarejestrowani delegaci odbierali zdarzenie.

Dotyczy

Zobacz też