I have three dropdown lists which perform as cascading lists. #1 sets the filter for #2 and then #2 does the same for #3 (standard stuff). Each dropdown gets its data from queries to separate tables.
My problem is when I pull data from an existing record and assign the data fields to the controls using the datareader the second list will not allow me to assign a value to it.
The dropDownAssetGroup.SelectedValue sets easily to assetGroupID but the dropDownAssetType.SelectedValue won't take the value of it assetTypeID (which does get the correct value), it stays as "". The values in the existing records are contained in the dropdown's items, and were even populated from the same controls.
string assetGroupID = rdr["AssetGroupID"].ToString();
if (assetGroupID != "")
{
dropDownAssetGroup.SelectedValue = assetGro ...
Go to the complete details ...