O'Reilly logo

ASP.NET for Web Designers by Peter Ladka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required