It looks like that the rows coming from the controller side contains duplicates, you can eliminate duplicates by using the
Distinct()
method :
@foreach (var itemChild in Model.compdl.Distinct())
{
<tr>
<td align="center">@itemChild.Id</td>
<td align="center">@itemChild.Line</td>
<td align="center">@itemChild.Art</td>
<td align="center">@itemChild.Quantity</td>
<td align="center">@itemChild.Price</td>
<td align="center">@itemChild.Total</td>
</tr>
}