How pass list<object> into webgrid <p>I'm trying to put into webgrid collection</p> <pre><code>public class MyClass() { List&lt;Row&gt; rows {get; set;} } public class Row() { public string code {get; set;} } grid.Column("Amount", format: @&lt;text&gt; @Html.TextBoxFor(model =&gt; model.rows.FirstOrDefault().code, new { @class = "edit-mode", size = 5 }) &lt;/text&gt;), </code></pre> <p>Using <code>model.rows.FirstOrDefault().code</code> it works but returns first element of collection in each row. </p> <p><code>model.rows.GetEnumerator().Current.code</code> returns nothing</p> <p>How to get right desision to get each element of collection in own row</p>