In older asp.net pages you could tell the DataList to fill horizontally like this :
<asp:DataList ID="dl" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" RepeatColumns="2">
Starting from a Razor Page vertical fill :
@foreach (var x in Model.records)
{
<tr class="border text-center">
<td>@x.AccessDate</td>
<td>@x.AccessLocationName</td>
<td>
<img src="@x.imagepath" class="grow" />
</td>
</tr>
}
Is it possible to get a horizontal layout that is 2 wide before it starts next row, with a Razor page ?
get a horizontal layout that is 2 wide before it starts next row? And your code in razor pages is horizontal fill instead of vertical fill, each row will contain three data.