+ Start a Discussion

DataTable - multiple rows for one record?

Hi - I have a visualforce page.. within the page, I have a pageblock, pageblocksection, dataTable and then I have 10 columns (I know that is a lot)  The problem is the data is all crowded together.

It there any way to wrap the data so that perhaps it takes up two rows for each record? 

Any suggestions would be greatly appreciated!!

Priyanka ChandrakanthPriyanka Chandrakanth
Hello Fred,

If you are trying to display a list of records in visualforce page, try looking into wrapper classes. Here is the link, https://developer.salesforce.com/page/Wrapper_Class. May be you can do some styling for these so that you have enough size of row to accomodate your record columns data.

Let me know if this helps!

Thanks Priyanks.  I have the Sara table set up, it's just that the fields are all crammed together.  I'm looking for a way to format the layout.  Perhaps using more than one row for each record?