Complex List Controls

Now it’s time to investigate some of the more complex beasts that ASP.NET has to offer for displaying list and bound tabular data. The DataList and DataGrid offer a lot more structure for the data that is bound to them. They also offer tons of control over how the data is displayed and what it can do with the addition of more powerful templates that handle column formatting and as well as function.

DataList Server Control

Because the DataList control has HTML formatting and additional function, it has a few more properties than the Repeater control.

Table 9.8. DataList Object Properties
Property Description
AlternatingItemStyle Gets the style properties for alternating items in the DataList control.
EditItemIndex Gets ...

Get ASP.NET for Web Designers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.