Can you any body help me to add Columns to Datatable on Vfpage Dynamically.I have to display all records in Data table on vfpage. we can add rows dynamically to datatable,but i need to add columns to datatable.Please help me in this scenario.
I am trying to add columns to data table dynamically,but i am not getting my requirement please help me for this scenario,
Scenario:- We need to display all required fields in datatable on page load,after that we need o take input from page,as how many number of columns should add,here if u entered 5 ,then 5 columns should add on button click to datatable,then after if u enetered 5 then from remaining list of fields 5 fields should added to datatable as columns.
Please help me
Thanks in Advance