The DataList control is used to display data that is in some sort of collection. As with the Repeater, the DataList supports a number of templates. These can be seen in Table 10.2. The DataList control has a richer feature set than the Repeater control. It supports selecting and editing. If you use a DataList control, you must at least define an ItemTemplate. Within the ItemTemplate, you can set the attributes with which the DataList is to render the data. The other templates determine other aspects of the DataList appearance.
|AlternatingItemTemplate||If defined, provides the content and layout for alternating items in the DataList. If not defined, ItemTemplate is used. ...|