Solved

VS 2013 create CellMouseDoubleClick event on datagridview C#

Posted on 2014-03-10
3
621 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 63

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 63

Expert Comment

by:Fernando Soto
ID: 39930052
Not a problem, glad to help.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

724 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