I am indeed using MVC with Razor.
I can figure out how to iterate through the ViewData just fine. My question, is how can I dynamicaly bind columns based on the values in ViewData.
I'm looking to do something like the following. But this obviously doesn't compile.
foreach (string col in ViewData["cols"])