asp.net.ph

DataListCommandEventArgs.Item Property

System.Web.UI.WebControls Namespace   DataListCommandEventArgs Class


Returns the selected item in the DataList.

Syntax


Script [ DataListItem variable = ] DataListCommandEventArgs.Item

Property Value


variable A DataListItem that represents the selected item in the DataList.

The property is read only with no default value.

Remarks

The Item property is used to access information about the selected item in a DataList control.

Example

The following examples demonstrate how to use the Item property to access information about the selected item in a DataList control.

DataList ItemCommand Event
Run Sample | View Source
Editing Items with Validation in DataList
Run Sample | View Source
Using a DropDownList in an Editable DataList
Run Sample | View Source
See Also

DataListCommandEventArgs   DataList   CancelCommand   DeleteCommand   EditCommand   ItemCommand   UpdateCommand Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note