0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【VB.NET】DataGridViewのセルの空白部分をダブルクリックしてもイベントが発生しない

Posted at

バージョン:VB.NET 4.7.2

発生した問題

DataGridViewを使用したフォームが2つあり、1つはセルの空白部分をダブルクリックしても
イベントが発生するが、もう1つはセル内の文字をダブルクリックしないとイベントが発生しない。
image.png

原因

使用しているイベントが違った。
CellContentDoubleClick:セル内の内容をダブルクリックするとイベントが発生する。
CellDoubleClick:セルのどこかをダブルクリックするとイベントが発生する。

CellDoubleClickを使用することで問題を解消することができた。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?