| |||||||||||
DataList.SelectedItem PropertySystem.Web.UI.WebControls Namespace DataList Class Returns the selected item in a DataList control. Syntax
This property can only be used programmatically; it cannot be set when declaring the control. Property Value
The property is read only with no default value. RemarksUse the SelectedItem property to get a DataListItem object that represents the item selected in the DataList control. This object can then be used to access the methods and properties of the selected item. ExampleThe following example demonstrates using the SelectedItem property to determine the selected item in a DataList control, display its contents and modify its properties.
See AlsoDataList Members SelectedIndex SelectedIndexChanged SelectedItemTemplate SelectedItemStyle Allowing Users to Select Items in a DataList Control |
| ||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme