transposing rows to columns dynamically

Database
N/A

transposing rows to columns dynamically

Hi I have a requirement where I need yo transpose rows to columns dynamically. That is thd row length is not fixed. Say I have 10 rows today they must get loaded as ten columns and tomorrow if i get 12 rows then 12 columns should be generated. This is yo be done in view.can someone give a solution for this?