I have a datatable as shown in the picture. I need to create excel with three excel sheets: car 1 gas, car2 gas, car 3 gas.
The tabs should have columns time + car X gas
For example:
Sheet(“car 1 gas”)
column 0 - time
column 1 - car 1 gas
Sheet(“car 2 gas”)
column 0 - time
column 1 - car 2 gas
How can i aquire this? datable is in format:
column 0 - time
column 1 - car 1 gas
column 2 - car 2 gas
column 3 - car 3 gas
(From cix in Enumerable.Range(0, dtData.Columns.Count).Skip(1)
Let arrCN = new Int32(){0,cix}.Select(Function (cn) dtData.Columns(cn).ColumnName).toArray
Select t = dtData.DefaultView.ToTable(false, arrCN)).ToList
For each activity | item in TableList - TypeArgument: DataTable