![]() ![]() | ||
A data-bound list control displays items using templates. Data lists are supported with the DataList class; here is the inheritance hierarchy of that class:
Object Control WebControl BaseDataList DataList
You can find the notable public properties of DataList objects in Table 23.6 and their notable events in Table 23.7. (This class has no non-inherited methods.) Note that as with other Web server controls, I am not listing the notable properties, methods, and events this class inherits from the Control and WebControl classes—you can find them in Tables 15.1 to 15.5 in Chapter 15.
Event |
Means |
---|---|
CancelCommand |
Occurs when Cancel is clicked. |
DeleteCommand |
Occurs when Delete is clicked. |
EditCommand |
Occurs when Edit is clicked. |
ItemCommand |
Occurs when any button is clicked. |
ItemCreated |
Occurs when an item is created. |
ItemDataBound |
Occurs when an item is data bound to a data list. |
UpdateCommand |
Occurs when Update is clicked. |
![]() ![]() | ||