Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は DataList を持っていて、それを DataTable にバインドしています。
RowRepeat を設定して、行を制限します。
私の DataTable には複数の行があります。DataList に 3 行を設定したい。
DataTable の行を数えてから、ColumnRepeat を (Rows of DataTable/3) に設定します。
DataList の行を制限する他の方法はありますか??
SQLクエリから制限できます。つまり
select Top 3 Id from table;
データリストでページングを行いたい場合は、このリンクを参照してくださいDatalist Paging?