SelectedValue - SelectedItem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

what is a selected value and what is a selected item? I am constantly
guessing and all the information I have found says SelectedItem is the item
selected and SelectedValue is the value selected. These answers leave me
chasing my tail.

Thanks

nczimm
 
SelectedItem returns the ListItem object. SelectedValue simply returns the
string value. SelectedValue is the same as SelectedItem.Value. Also,
SelectedValue is read/writable, whereas SelectedItem is readonly. You can
safely use SelectedValue, unless there's a reason you need the entire
ListItem that was selected (99% of the time you only use the value).

Karl
 
Back
Top