語言

DataGridView.OnRowLeave(DataGridViewCellEventArgs) 方法

定義

引發 RowLeave 事件。

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

參數

備註

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

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

給繼承者的注意事項

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

適用於

另請參閱