Solved

Double Click DataGridView

Posted on 2006-06-21
2
11,140 Views
Last Modified: 2012-06-27
How can I capture if a user double clicks a datagridview row?  I have select entire row on.
0
Comment
Question by:Rowdyone52
2 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 16956265
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
 
LVL 5

Expert Comment

by:t_itanium
ID: 16957946
you can use the double click event of the datagrid..
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now