DataGridViewCell.OnClick(DataGridViewCellEventArgs) 方法

定義

當按下儲存格時呼叫。

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

參數

e
DataGridViewCellEventArgs

DataGridViewCellEventArgs,其中包含事件資料。

備註

這個方法類似于 DataGridView.OnCellClick 方法。 它會在引發事件的相同情況下 DataGridView.CellClick 呼叫,但實際上不會引發事件。

適用於

另請參閱