Tuesday, 20 December 2011

DropDownList has a SelectedValue which is invalid because it does not exist in the list of items

This issue is sometimes caused by changing the datasource of a drop down in the same page lifecycle.

This can be fixed by clearing the selection and selected item of the drop down list before rebinding to a new datasource.

eg:

1 comment: