Double Click DataGridView

How can I capture if a user double clicks a datagridview row?  I have select entire row on.
Rowdyone52Asked:
Who is Participating?
 
Bob LearnedCommented:
Try this:

  private void DataGridView1_CellMouseDoubleClick(object sender, System.Windows.Forms.DataGridViewCellMouseEventArgs e)
  {
     if (e.RowIndex >= 0 && e.ColumnIndex >=0)
        MessageBox.Show("Row double click");
  }

Bob
0
 
t_itaniumCommented:
you can use the double click event of the datagrid..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.