ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources]

G. andrew Duthie; matthew Macdonald

نسخه متنی -صفحه : 873/ 599
نمايش فراداده

ListDataBindEventArgs.NET 1.1

System.Web.UI.MobileControls (system.web.mobile.dll)class

This custom EventArgs object contains information provided to methods that handle the List.ItemDataBind event. This information includes the MobileListItem that is being bound (ListItem) and the data item that is being bound to it (DataItem). For example, if you are binding a list to a System.Data.DataTable, the DataItem will return the corresponding System.Data.DataRow object.

public class 

ListDataBindEventArgs : EventArgs { // Public Constructors public

ListDataBindEventArgs (MobileListItem

item , object

dataItem ); // Public Instance Properties public object

DataItem {get; } public MobileListItem

ListItem {get; } }

Hierarchy

System.Object System.EventArgs ListDataBindEventArgs

Passed To

List.OnItemDataBind( ), ListDataBindEventHandler.{BeginInvoke( ), Invoke( )}, SelectionList.OnItemDataBind( )