title: WPF Datagrid COMException on using IncludeHeader ClipboardCopyMode
body: <p>In my WPF app, I am using a <code>Datagrid</code> control; in the control definition I defined <code>ClipboardCopyMode</code> property as 'IncludeHeader'.</p>
  
  <pre><code>&lt;DataGrid Name="datagrid"  ClipboardCopyMode="IncludeHeader"&gt;
  &lt;/DataGrid&gt;
  </code></pre>
  
  <p>At times, when I try to copy any data from grid, I am encountering <code>HRESULT</code> clipboard crash error - </p>
  
  <pre><code>System.Runtime.InteropServices.COMException (0x800401D0): 
  OpenClipboard Failed (Exception from HRESULT: 0x800401D0 (CLIPBRD_E_CANT_OPEN))
  </code></pre>
  
  <p>Any suggestions to resolve it. I looked at other posts, mostly they are about how to handle this scenario when you explicitly use the <code>Clipboard</code> related methods but none related to <code>Datagrid</code>.</p>