Re: Disable ListItem in Drop Down List

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Just remove the unwanted items from the list, then users can't select them.

"KerryC" <KerryC@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3A96E166-1E23-4502-8EC4-ED885FEE351F@xxxxxxxxxxxxxxxx
I am trying to disable a list item in a drop down list.

The list looks something like

"Item 1

Other items that may interest you

Item 2
Item 3"

So items with an index of 1, 2 and 3 should not be selectable as I do not
want them to fire the onselectedindexchange.

I know that there is an enabled property but that this does not apply to
dropdownlists.

Does anyone know of another way I can disable these items?

Thanks for your help.


.