How do I make the text in last row bold in a table using @foreach?
<p>Is there a way to make the text in the last row bold using <code>@foreach</code> html?</p>

<p>I want to display the total sum of each column in in bold text.
I thought about making a new table below the current one, only displaying the total, but if I can use the same table it would be great.</p>

<p><strong>Model</strong></p>

<pre><code>//This is the last row
foreach (DataRow item in current2.Tables[0].Rows)
{
    var cid2 = new SModel
    {
        Users = Convert.ToInt32(item["TotalUsers"]),
        Rows = Convert.ToInt32(item["TotalRows"]),
        Orders = Convert.ToInt32(item["TotalOrders"]),
        Customers = Convert.ToInt32(item["TotalCustomers"]),
        Quantity = Convert.ToInt32(item["TotalQuantity"]),
    };

    CASVList.Add(cid2);
}
</code></pre>

<p><strong>View</strong></p>

<pre class="lang-asp prettyprint-override"><code>&lt;table&gt;
    &lt;thead&gt;
    &lt;tr&gt;
        &lt;th&gt;Hour&lt;/th&gt;
        &lt;th&gt;Users&lt;/th&gt;
        &lt;th&gt;Customers&lt;/th&gt;
        &lt;th&gt;Orders&lt;/th&gt;
        &lt;th&gt;Rows&lt;/th&gt;
        &lt;th&gt;Quantity&lt;/th&gt;
    &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
    @foreach (var item in Model.SModelObject.CSItem)
    {
        &lt;tr&gt;
            &lt;td&gt;@Html.DisplayFor(modelItem =&gt; (item.Text.Split(',')[0]))&lt;/td&gt;
            &lt;td&gt;@Html.DisplayFor(modelItem =&gt; (item.Text.Split(',')[1]))&lt;/td&gt;
            &lt;td&gt;@Html.DisplayFor(modelItem =&gt; (item.Text.Split(',')[2]))&lt;/td&gt;
            &lt;td&gt;@Html.DisplayFor(modelItem =&gt; (item.Text.Split(',')[3]))&lt;/td&gt;
            &lt;td&gt;@Html.DisplayFor(modelItem =&gt; (item.Text.Split(',')[4]))&lt;/td&gt;
            &lt;td&gt;@Html.DisplayFor(modelItem =&gt; (item.Text.Split(',')[5]))&lt;/td&gt;
        &lt;/tr&gt;
    }
    &lt;/tbody&gt;
&lt;/table&gt;
</code></pre>

<p>Thanks in advance!</p>