title: Displaying data in table without knowing number of columns
body: <p>I am working on writing a web application in MVC in which I retrieve data from SQL.  I need to display this data on the page however, and this is the annoying part, I potentially won't know all of the columns being returned.</p>
  
  <p>Normally I would have a class that would form part of my <code>Model</code> allowing me to specifically state what each column was and it would work fine.  </p>
  
  <p>I've had a look at dynamic tables but even they seem to need some kind of known quantity for the columns (I may be looking at the wrong thing).</p>
  
  <p>Can anybody point me in the right direction as to how I could go about this?  I've been pulling my hair out trying to think of how I can write this code but I'm utterly stuck.</p>
  
  <p>-- 
  <strong>Edit</strong>
  One of the things the SQL dev and I have pondered is a secondary stored procedure which would return a list of the column headers, possibly with a true/false to state if they are to be used.  To me this seems very messy though.</p>