How do you show x items per row in a repeater?

前端 未结 7 2001
予麋鹿
予麋鹿 2020-12-19 12:49

Anyone have any clue on how to show 4 items going horizontal with a repeater? A repeater shows items going down by default. Here is my test repeater code so far:



        
7条回答
  •  别那么骄傲
    2020-12-19 13:28

    Using DataList control with RepeatColumns property might be simpler :

    DataList1.RepeatColumns = 4;
    DataList1.RepeatDirection = RepeatDirection.Horizontal;
    

提交回复
热议问题