我想在gridview中执行此样式,此网页中有超过1000条记录
感谢
答案 0 :(得分:0)
foreach (var item in Model)
{
string @imgpath = "/pictures/" + @item.ArticleNumber + ".jpg";
<div class="record">
<img src=@imgpath>
<br />
<div>@item.SalesOffice @item.PriceList</div>
</div>
if (i % 2 == 1)
{
<br />
}
i++;
}