October 2010
Intermediate to advanced
1920 pages
73h 55m
English
DataList ControlThe DataList control supports all the same templates as the Repeater control:
• ItemTemplate—
Formats each item from the data source.
• AlternatingItemTemplate—
Formats every other item from the data source.
• SeparatorTemplate—
Formats between each item from the data source.
• HeaderTemplate—
Formats before all items from the data source.
• FooterTemplate—
Formats after all items from the data source.
In addition, the DataList supports the following templates:
• EditItemTemplate—
Displays when a row is selected for editing.
• SelectedItemTemplate—
Displays when a row is selected.
The DataList control in Listing 13.9 includes both a HeaderTemplate and a FooterTemplate. The HeaderTemplate contains the ...