Click to See Complete Forum and Search --> : Datalist display direction


cykophysh
March 5th, 2007, 11:09 AM
Hi guys,

I have a Datalist on a page that I am using to displya data from a DB.
I have it set
<asp:DataList ID="dlDisplay" runat="server" RepeatColumns="3" DataSourceID="objDataSource"
EnableViewState="False" removed="DataList_ItemDataBound" removed="DataList_ItemCreated" RepeatLayout="Flow">

The problem is currently my Data is being displayed in this order :

1 4 7
2 5 8
3 6 9

I would like to display it in :

1 2 3
4 5 6
7 8 9


I can't seem to find a property I can set it too, so I was wandering if there is something I am missing?

mcmcom
March 5th, 2007, 11:38 AM
put in RepeatDirection="horizontal"

http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.datalist.repeatdirection.aspx

hth,
mcm

cykophysh
March 5th, 2007, 11:43 AM
thanks :thumb: