Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VS 2013 create CellMouseDoubleClick event on datagridview C#

Posted on 2014-03-10
3
Medium Priority
?
641 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 64

Accepted Solution

by:
Fernando Soto earned 2000 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 64

Expert Comment

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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

610 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