@BenTam , Welcome to Microsoft Q&A,
Q1. Why use "+ =" ?
The CellClick is an event, which is a special delegate. We could use '+=' to subscribe to events, you could refer to the Microsoft doc How to subscribe to and unsubscribe from events to know more about it.
Q2. How to do if I want to check a mouse DoubleClick rather then a CellClick?
We could use the following code to subscribe to the correspond events.
public Form1()
{
InitializeComponent();
dataGridView1.CellClick += DataGridView1_CellClick;
dataGridView1.MouseDoubleClick += DataGridView1_MouseDoubleClick;
}
private void DataGridView1_MouseDoubleClick(object sender, MouseEventArgs e)
{
// Do Something
}
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.