List::ItemDataBind Event

 

Occurs when an item in a List is bound to data. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

public:
event ListDataBindEventHandler^ ItemDataBind {
	void add(ListDataBindEventHandler^ value);
	void remove(ListDataBindEventHandler^ value);
}

When an item in a List is created and data-bound, this event handler sets the properties of the list item from arbitrary expressions. An item in a List is of type MobileListItem. This event is raised as each data source item is bound. This is the best time to filter or group items in the MobileListItemCollection collection, by using the Text or Value Property.

The following code example demonstrates how to use the ItemDataBind event to get the starting totals of status settings for the list. This code is part of a larger example for the List overview.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: