asp.net.ph

DataList.RepeatDirection Property

System.Web.UI.WebControls Namespace   DataList Class


Specifies whether the DataList items are displayed vertically or horizontally.

Syntax


Inline <asp:datalist repeatdirection = enumValue ... >
Script DataList.RepeatDirection = enumValue

Property Value


enumValue One of the RepeatDirection values.

The property is read/write with a default value of Vertical.

Exceptions


Exception Type Condition
ArgumentException The given value is not one of the RepeatDirection values.

Remarks

Use the RepeatDirection property to specify the display direction of the DataList control — whether the items in the DataList are displayed in horizontal or vertical order.

NOTE: If the RepeatColumns property is set to 0, the DataList displays its items in a single row or column, based on the value of the RepeatDirection property. If RepeatDirection is not set, or is set to Vertical, the items are displayed in a single column. If RepeatDirection is set to Horizontal, the items are displayed in a single row.

For more information, see the RepeatDirection enumeration.

Example

The following example demonstrates dynamically setting the RepeatDirection of a DataList at run time, based on user input.

 Show me 

See Also

DataList Members   DataList.RepeatColumns   DataList.RepeatLayout   Specifying List Direction in a DataList Control Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph