Szerkesztés

Megosztás a következőn keresztül:


DataGridView.OnRowDirtyStateNeeded(QuestionEventArgs) Method

Definition

Raises the RowDirtyStateNeeded event.

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

Parameters

e
QuestionEventArgs

A QuestionEventArgs that contains the event data.

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The OnRowDirtyStateNeeded method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding OnRowDirtyStateNeeded(QuestionEventArgs) in a derived class, be sure to call the base class's OnRowDirtyStateNeeded(QuestionEventArgs) method so that registered delegates receive the event.

Applies to

See also