Site Map | About Us | Contact Us  
 The same content in Microsoft HTML help file format is included in the download package.

NavigationItem.DataItem Property

Gets the data item that is bound to this item.

[Visual Basic]
Public ReadOnly Property DataItem As Object
[C#]
public Object DataItem {get;}

Property Value

System.Object

The data item that is bound to this item.

Remarks

This property should only be used during data binding. Typically you use this property while handling ItemDataBound event.

This following table lists the correspondence between the type of DataSource and the type of DataItem:

When DataSource is... Container.DataItem is...
DataTable or DataView DataRowView
DataSet, DataRow
IDataReader IDataRecord
IEnumerable The element type

See Also

NavigationItem Class | EO.Web Namespace


Direct link to this topic