Please how can I make DataList control be responsive for desktop, laptop and mobile screens. Or could it be that I should use repeater instead; I learnt repeater control cannot be made to display horizontally in “RepeatDirection”?
.grid-corner
{
border: 0px solid #C0C0C0;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
overflow-x: scroll;
margin: 0 auto;
padding: 10px;
}
<div class="col-sm-10" style="margin-top: 2%; display: flex; width: 100%;">
<div class="grid-corner" style="width: 100%; background-color: white; font-size: 9pt; margin: 0 auto;">
<asp:DataList ID="TemplateList" runat="server" Width="100%" RepeatDirection="Horizontal" RepeatColumns="6" CellSpacing="3" RepeatLayout="Table" CssClass="row">
<ItemTemplate>
<asp:ImageButton ID="ImageButton1" CssClass="ImageButton" runat="server" ImageUrl='<%# "data:image/png;base64," + Convert.ToBase64String((byte[])Eval("Data")) %>' Height="150" BorderStyle="Solid" BorderWidth="1" />
</ItemTemplate>
</asp:DataList>
</div>
</div>