View Single Post
  #6 (permalink)  
Old July 10th, 2003, 03:48 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

How about killing the DataList altogether, something like this:

Code:
MyDataList = New DataList()
SetupDataList(MyDataList)
In the SetupDataList method, you can add formatting and other behavior you might need.

The ItemCreated event allows you to customize the creation of an item. You can apply custom formatting, hide items etc. Check out the MSDN docs for the ItemCreated event for more info.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.