Perhaps this is just completely wrong, but back in the days of Webforms you would return a Dataset which you would then bind to a grid. But now in MVC you\'re not supposed
Here is the answer in Razor syntax
@foreach (System.Data.DataColumn col in Model.Columns) { @col.Caption } @foreach(System.Data.DataRow row in Model.Rows) { @foreach (var cell in row.ItemArray) { @cell.ToString() } }