While your DropDownList is populating with elements, you can easily enable and disable them using the following property:
DropDownList1.Items[1].Enabled = false; DropDownList1.Items[2].Enabled = true;
This will cause them to appear in HTML as non-selectable.
source share