Split List in to Multi-Column
Ooops, this turning out be an example needed for each query i get.
Neway, i enjoy answering them.
Consider this request, you have list, but you dont want to put in one below other.
Rather, 4 in a row, or consider X in a row and rest X of them in next line and goes on.
You can do it in many ways.
First simple one would be have multiple for-each stmt's in each column.
Add a filter on mod, 1,2,3,4,...0
Note: 0 is on the last column.
Have a look at the snapshots, it is self-explanatory, i guess.
Neway, i enjoy answering them.
Consider this request, you have list, but you dont want to put in one below other.
Rather, 4 in a row, or consider X in a row and rest X of them in next line and goes on.
You can do it in many ways.
First simple one would be have multiple for-each stmt's in each column.
Add a filter on mod, 1,2,3,4,...0
Note: 0 is on the last column.
Have a look at the snapshots, it is self-explanatory, i guess.
Comments