語言

DataGridView.OnCancelRowEdit(QuestionEventArgs) 方法

定義

引發 CancelRowEdit 事件。

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

參數

e
QuestionEventArgs

QuestionEventArgs A 包含事件資料。

備註

發起事件會透過代理呼叫事件處理者。 欲了解更多資訊,請參閱 處理與提升事件。

此 OnCancelRowEdit 方法也允許衍生類別在不附加代理的情況下處理事件。 這是在衍生類別中處理事件的首選技術。

給繼承者的注意事項

在導出類別中覆寫 OnCancelRowEdit(QuestionEventArgs) 時,務必呼叫基底類別的方法 OnCancelRowEdit(QuestionEventArgs) ,讓註冊代理接收事件。

適用於

另請參閱