0
我有3列3行DataList控件,结合这一个数据源。如何在DataList的特殊列/行中添加控件?
<asp:DataList ID="DataList1" RepeatDirection="Horizontal" runat="server" RepeatColumns="3">
<ItemTemplate>
<a href="#" class="tile group0 " style="margin-left: 20px; margin-right: 20px; width: 145px; height: 126px; background: none repeat scroll 0% 0% rgb(102, 128, 0); display: inline;">
<h5 class="white"><%# Eval("Name") %></h5>
</a>
</ItemTemplate>
</asp:DataList>
我在数据源中有8条记录。
DataTable dt = clsCategoryFactory.GetAllDT();
DataList1.DataSource=dt;
DataList1.DataBind();
我想为此在column3 rows3上添加一个按钮。
是可能的数据列表的特殊行/列中添加控件?
因为我想添加按钮到第3列和第3行的datalist。 – Niloo 2013-04-10 05:30:47