title: disable copy and paste in datagridview
body: <p>I am a beginner in .net. This could be a silly question. I want to disable <kbd>ctrl</kbd> + <kbd>c</kbd> and <kbd>ctrl</kbd> + <kbd>v</kbd> keyboard shortcuts.</p>
  
  <p>Before asking here I tried these codes <a href="http://msdn.microsoft.com/en-us/library/2dzbc92t.aspx" rel="nofollow noreferrer">link1</a> and <a href="https://stackoverflow.com/q/11755747/1577396">link2</a> (<em>not working</em>)<br></p>
  
  <pre><code>private void dgvMain_CellEndEdit(object sender, DataGridViewCellEventArgs e)
      {
          this.dgvMain.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
      }
  
      private void dgvMain_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
      {
          this.dgvMain.ClipboardCopyMode = DataGridViewClipboardCopyMode.Disable;
      }
  </code></pre>
  
  <p><strong>and also</strong></p>
  
  <pre><code>this.dgvMain.ClipboardCopyMode = DataGridViewClipboardCopyMode.Disable;
  </code></pre>
  
  <p><code>dgvMain</code> is datagridview<br>
  I maybe missing something here.</p>
  
  <p>EDIT:<br>
      The properties for my datagridview which I have altered are:</p>
  
  <pre><code>AllowUserToResizeColumns      -- False
  AllowUserToResizeRows         -- False
  ClipboardCopyMode             -- disable
  ColumnsHeadersHeightSizeMode  -- AutoSize
  Dock                          -- Fill
  ReadOnly                      -- True   
  TabStop                       -- False
  </code></pre>
  
  <p>Please help
  <br>Thanks in Advance.</p>