disabling an item in combobox
-
Hi all In my asp.net project in a form i want to disable a particular item in a combobox Like if this is condition make the 3rd item in the combobox disable or hiden. How to do it?? Thanks & Regards Prakash
Prakash Mishra(Banglore,India)
-
Hi all In my asp.net project in a form i want to disable a particular item in a combobox Like if this is condition make the 3rd item in the combobox disable or hiden. How to do it?? Thanks & Regards Prakash
Prakash Mishra(Banglore,India)
try this code
ddl.Items[3].Enabled = False;
Best Regard Pathan---------------------------------------------------
-
try this code
ddl.Items[3].Enabled = False;
Best Regard Pathan---------------------------------------------------
Hi imran i tried that before but its not working i think the syntax is not correct i am working with VB as the lang.
Prakash Mishra(Banglore,India)
-
Hi imran i tried that before but its not working i think the syntax is not correct i am working with VB as the lang.
Prakash Mishra(Banglore,India)
so try this code
ddl.Items(0).Enabled=false
Best Regard Pathan---------------------------------------------------
-
so try this code
ddl.Items(0).Enabled=false
Best Regard Pathan---------------------------------------------------
DPOption.Items(3). After this there is no enabled option.
Prakash Mishra(Banglore,India)
-
DPOption.Items(3). After this there is no enabled option.
Prakash Mishra(Banglore,India)
DPOption.Items.RemoveAt(3) this worked thanks for the help Regards
Prakash Mishra(Banglore,India)