Solved

VS 2013 create CellMouseDoubleClick event on datagridview C#

Posted on 2014-03-10
3
599 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
Comment Utility
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
Comment Utility
Perfect thank you
0
 
LVL 62

Expert Comment

by:Fernando Soto
Comment Utility
Not a problem, glad to help.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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!
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

13 Experts available now in Live!

Get 1:1 Help Now