Tuesday, June 06, 2006

DataList Events

  • A DataListItem instance is created.
  • The proper template is used to render the contents of the DataListItem. It's at this point that the DataList's SelectedIndex is checked to see whether the ItemTemplate should be used or if the SelectedItemTemplate should be used.
  • The DataList's ItemCreated event is raised.
  • The DataListItem's DataItem property is set to the current DataSource row, and the DataListItem's DataBind() method is called.
  • The DataList's ItemDataBound event is raised.

No comments: