FooterStyle
customizes the appearance of the DataLists footer
SelectedItemStyle
customizes the appearance of a selected item within the DataList
EditItemStyle
customizes the appearance of the DataList when in edit mode
In the next chapter, youll learn how to use CSS styles and control skins to facil-
itate a more professional approach to styling your data controls. Until then, enjoy
the benefits of having a modern-looking, functional employee directory!
Summary
As youve seen, DataLists provide flexibility and power in terms of presenting
database data dynamically within the browser. In this chapter, you learned how
to bind your data to DataLists, and how to customize their appearance using
templates and styles. You also learned how to edit data in your DataList control,
and how to access controls located in the DataList templates.
The next chapter will introduce you to two new and more powerful controls:
GridView and DetailsView.
426
Chapter 10: Displaying Content Using Data Lists

Get Build Your Own ASP.NET 2.0 Web Site Using C# & VB, Second Edition 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.