I don't know about your values, but maybe this Extension method will help:
public static class MyHtmlExtensions
{
public static string DisplayForDynamicModel(this HtmlHelper html, dynamic model)
{
Type t = model.GetType();
var props = t.GetProperties();
StringBuilder sb = new StringBuilder();
foreach (var p in props)
{
string value = p.GetValue(model).ToString();
sb.AppendFormat("<tr>{0}</tr>", value);
}
return sb.ToString();
}
}
You can use it like this:
@foreach (var r in Model.Rows)
{
@Html.DisplayForDynamicModel(r)
}