title: How to export DataTable to Excel
body: <p>How can I export a <code>DataTable</code> to Excel in C#? I am using Windows Forms. The <code>DataTable</code> is associated with a <code>DataGridView</code> control. I have to export records of <code>DataTable</code> to Excel.</p>