Just would like to ask for your help on how to do this on vb.net
Need to transpose data table result to another data table.
All logs of a particular ID# should be re-arrange into one row only then export to Excel.
This is the scenario.
Result
Data table 1
ID# | Log date/time
111111 | 09/10/2018 7:30
111111 | 09/10/2018 10:30
111111 | 09/10/2018 13:30
111111 | 09/10/2018 17:30
222222 | 09/10/2018 7:30
222222 | 09/10/2018 17:30
333333 | 09/10/2018 7:30
333333 | 09/10/2018 18:30
Transpose to
Data table 2
ID# | Log date/time 1 | Log date/time 2 | Log date/time 3 | Log date/time 4
111111 | 09/10/2018 7:30 | 09/10/2018 10:30 | 09/10/2018 13:30 | 09/10/2018 17:30
222222 | 09/10/2018 7:30 | 09/10/2018 17:30
333333 | 09/10/2018 7:30 | 09/10/2018 18:30
Thanks in advance.
Need to transpose data table result to another data table.
All logs of a particular ID# should be re-arrange into one row only then export to Excel.
This is the scenario.
Result
Data table 1
ID# | Log date/time
111111 | 09/10/2018 7:30
111111 | 09/10/2018 10:30
111111 | 09/10/2018 13:30
111111 | 09/10/2018 17:30
222222 | 09/10/2018 7:30
222222 | 09/10/2018 17:30
333333 | 09/10/2018 7:30
333333 | 09/10/2018 18:30
Transpose to
Data table 2
ID# | Log date/time 1 | Log date/time 2 | Log date/time 3 | Log date/time 4
111111 | 09/10/2018 7:30 | 09/10/2018 10:30 | 09/10/2018 13:30 | 09/10/2018 17:30
222222 | 09/10/2018 7:30 | 09/10/2018 17:30
333333 | 09/10/2018 7:30 | 09/10/2018 18:30
Thanks in advance.