RadioButtonList.SelectedIndex vs RadioButtonList.SelectedValue
Posted
by
Pinpin
on Stack Overflow
See other posts from Stack Overflow
or by Pinpin
Published on 2008-11-14T15:22:46Z
Indexed on
2012/09/21
9:38 UTC
Read the original article
Hit count: 384
Out of curiosity, anyone knows the particulars of the internal implementation of
ListControl.SelectedIndex = (int) <new valueIndex>
VS
ListControl.SelectedValue = <new value>.ToString()
I'm having difficulties with a custom validation object we've built here to process all validation in one sweep. I suspect using <SelectedValue = >
will raise a SelectedIndexChanged
event, even though both the value and index remain the same, both before and after the operation.
(The ListControl's values are populated declaratively....)
As ever, thank you for your time!
© Stack Overflow or respective owner