Solved

VS 2013 create CellMouseDoubleClick event on datagridview C#

Posted on 2014-03-10
3
610 Views
Last Modified: 2014-03-14
Real rookie question here. I want to be able to double click the gridview and have an event fire.
**********************************************
When I double click on the datagridview the event CellContentClick is automatically created for me.

private void datagridview1_CellContentClick(object sender, DataGridViewCellEventArgs e)
**************************************************

But how do I create the event

private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
0
Comment
Question by:Idarac
  • 2
3 Comments
 
LVL 62

Accepted Solution

by:
Fernando Soto earned 500 total points
ID: 39918892
When in form designer select the DataGridView then in the Properties window on the toolbar in that window you have an icon that looks like a lightning bolt, click on it. You are now looking at all the Events that is supported. Find the CellMouseDoubleClick and double click on it and it will fill in the event name and create the event in code.
0
 
LVL 1

Author Closing Comment

by:Idarac
ID: 39930049
Perfect thank you
0
 
LVL 62

Expert Comment

by:Fernando Soto
ID: 39930052
Not a problem, glad to help.
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

Title # Comments Views Activity
ASP.NET Web API or ASP.NET Core MVC? 3 52
Resolve Dependency Issues 4 45
C# Json POSt to Rest API 4 36
use of unassigned local variable 'id' 6 21
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

910 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

19 Experts available now in Live!

Get 1:1 Help Now