I have in dropdownlist some values, (for example 1, 2, 3) and I want to hide one of them (for example 2), then when i click on dropdownlist I want to see only 1 and 3 values...
I use this code, but it doesnt work...
dropDownList.Items[0].Attributes.Add("style", "display: none");
this solution doesnt work too...
dropDownList.Items[0].Attributes.Add("style", "visibility: hidden");
but when I for example setting color with this solution, it works...
Do somebody know how to set it in C#?
Later I want to unhide this value and I want to see all values (1, 2, 3)
Thx.