I have a collection that is created from a reasonably complex (for me) SQL pivot query with dynamic column headers.
This is so that I can show a matrix type table to my users - what we are trying to show is that for any CATEGORY and SERVICE there is a specific MATRIX entry, category names and services change on a regular basis so these are maintained in different joined tables.
The collection is small, but I don't know how many columns or rows will be in the collection, not looking at many more than 10 columns and 20/30 rows, but the column names will change, hence dynamic.
What I need help with is how can I extract the number of and names of my columns to create the HTML table dynamically.
Here is some samples from the collection:
Thanks

Report
All responses (
Answers (