DataGridView.OnCellMouseDown メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGridView.OnCellMouseDown メソッドの意味・解説 

DataGridView.OnCellMouseDown メソッド

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

CellMouseDown イベントを発生させます。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Protected Overridable Sub
 OnCellMouseDown ( _
    e As DataGridViewCellMouseEventArgs _
)
Dim e As DataGridViewCellMouseEventArgs

Me.OnCellMouseDown(e)
protected virtual void OnCellMouseDown (
    DataGridViewCellMouseEventArgs e
)
protected:
virtual void OnCellMouseDown (
    DataGridViewCellMouseEventArgs^ e
)
protected void OnCellMouseDown (
    DataGridViewCellMouseEventArgs e
)
protected function OnCellMouseDown (
    e : DataGridViewCellMouseEventArgs
)

パラメータ

e

イベント データを格納している DataGridViewCellMouseEventArgs。

例外例外
例外の種類条件

ArgumentOutOfRangeException

e の ColumnIndex プロパティの値が、コントロール内の列数 - 1 を超えています。

または

e の RowIndex プロパティの値が、コントロール内の行数 - 1 を超えています。

Exception

この操作を実行すると、セルの値がコミットされるか、編集モードに移行しますが、データ ソース内にエラーが存在するため、この操作を正常に実行できません。DataError イベントにハンドラが存在しないか、ハンドラによって DataGridViewDataErrorEventArgs.ThrowException プロパティが true に設定されています。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「DataGridView.OnCellMouseDown メソッド」の関連用語

DataGridView.OnCellMouseDown メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DataGridView.OnCellMouseDown メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS