Write data table with more than 2 columns by foreach

4 columns with foreach

 

2 Columns

 

4 columns