title: How to copy data to clipboard when user selects "Copy" from ContextMenu
body: <p>How would you copy the contents of a datagrid cell to the clipboard when the user selects copy from the context menu on a paticular cell?</p>
  
  <pre><code>public Form1()
  {
      InitializeComponent();
      dataGridView1.MouseClick += dataGridView1_MouseClick;
  }
  
  void dataGridView1_MouseClick(object sender, MouseEventArgs e)
  {
      if (e.Button == MouseButtons.Right)
      {
          ContextMenu m = new ContextMenu();
          m.MenuItems.Add(new MenuItem("Copy"));
  
          int currentMouseOuverRow = dataGridView1.HitTest(e.X, e.Y).RowIndex;
  
          m.Show(dataGridView1, new Point(e.X, e.Y));
      }
  }
  </code></pre>