title: Left and Right Mouse click event for a cell in a DataGridView
body: <p>I am trying to get an event where if you left click a cell in a <code>DataGridView</code>, the contents of that cell will go into a <code>Textbox</code>. The same goes if you right click a cell in a <code>DataGridView</code> the contents will go into a different <code>Textbox</code>. Here is the code I have so far</p>
  
  <pre><code>  private void dataGridView2_mirror_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
      {
          switch (MouseButtons)
          {
              case MouseButtons.Left:
                  textBox3.Text = dataGridView2_mirror.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();
                  break;
  
              case MouseButtons.Right:
                  textBox4.Text = dataGridView2_mirror.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();
                  break;
          }
      }
  </code></pre>
  
  <p>The problem that I am getting is that it is not recognizing that the cell is being clicked, where as if I put the code into a regular <code>MouseEventArgs</code> for mouse down the code will recognize whether it is a right click or a left click.  </p>