VS 2013 create CellMouseDoubleClick event on datagridview C#

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)
LVL 1
IdaracAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Fernando SotoConnect With a Mentor RetiredCommented:
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
 
IdaracAuthor Commented:
Perfect thank you
0
 
Fernando SotoRetiredCommented:
Not a problem, glad to help.
0
All Courses

From novice to tech pro — start learning today.