DataTable exportTable = new DataTable();
exportTable.Columns.Add("Place", typeof(string));
exportTable.Columns.Add("Day", typeof(string));
foreach (var time in timeList)
{
exportTable.Columns.Add(time, typeof(string));
}
exportTable.Rows.Add("New York", 1/1/2015, ?, ?, ?, ...);
How can I dynamically fill a row in a DataTable?