I have a dropdownlist which has several options for generating reports. Based on the type of account the user has certain options which should be visible but not selectable
I had this same problem and tried to use the first answer posted, but it didn't work for me. I then changed the first post to:
foreach ( ListItem item in dropdownlist.Items ) { if ( [item should be disabled contdition] ) { item.Enabled = false; } }
and it worked for me.