how to export html table data to excel in c#?
['Create DataTable and Define Columns. DataTable table = new DataTable(); table.Columns.Add("ID", typeof(int)); ... ', 'Add Rows. table.Rows.Add(111, "Devesh", "Ghaziabad"); table.Rows.Add(222, "ROLI", "KANPUR"); ... ', 'Bind DataGridView. dataGridView1. DataSource=table;', 'Running the code the following will be the screen.']