Is there a way to have five columns in an asp.net data list and to only display 5 rows per column. So it would result in this format
1 6 2 7 3 8 4 9 5 10
I’ve set the repeat direction to ‘vertical’ already and set repeat columns to 5 but it’s showing 8 per column for 5 columns.
To get 5 rows and 5 columns, then your DataSource needs to contain 25 items:
HTML:
C# CodeBehind:
Output: