I am not sure if you got your answer, but for other's reference i am posting here.
Whatever Bauke said is correct.
The best way to write a Custom Component, or alternatively you can write your own renderer for DataTable.
An another work around is to use a
java script function and call it onload.
you can simple print the data table vertically and traverse the HTML table element using Java script and convert rows into columns.