title: DataGrid to Excel?
body: <p>I have a program created in WPF. It displays a <code>DataGrid</code> with data from a MySQL Database. What I want to do is to allow the user to export the contents of the <code>DataGrid</code> to an Excel file. Is this possible with WPF?</p>
  
  <p>When I use the method shown here: <a href="https://www.outcoldman.ru/en/blog/show/201" rel="nofollow">https://www.outcoldman.ru/en/blog/show/201</a></p>
  
  <p>The only row that gets imported to the xls file is the header.</p>