title: Copy DataGridView contents to clipboard
body: <p>I want to copy the contents of a DataGridView and paste it in Excel. I tried:</p>
  
  <pre><code>myDataGrid.SelectAll();
  DataObject dataObj = myDataGrid.GetClipboardContent();
  Clipboard.SetDataObject(dataObj, true)
  </code></pre>
  
  <p>But this just pastes nothing.</p>
  
  <p>Any suggestions?</p>