disable some of the item elements in combo Box using C# windows application

Posted by Jayakumarv under C# on 3/11/2011 | Points: 10 | Views : 10425 | Status : [Member] | Replies : 4
i have windows application using VS2005, C#.net. and i used combo box that contains a collection of elements.
I want to differentiate some of the elements in the combo box and differentiate item should disable the elements in combo box.I cannot find any properties

Does anyone have any idea on how to d disable the combo box's elements.




Responses

Posted by: T.saravanan on: 3/11/2011 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Can you explain your question? What is your problem in Combo Box?

Thanks,
T.Saravanan

Jayakumarv, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Prabhakar on: 3/11/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
hi Jayakumarv..

say ur full requirement . . if u want to hide combo box item . . with condition

Best Regard's
Prabhakar

Jayakumarv, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 3/11/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
I dont think you can disable the items but what you can do is remove the items based on your conditions.

Thanks and Regards
Madhu

Jayakumarv, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 3/11/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

In combo box we cant disable a particular item or element instead we can disable the whole combo box itself. The alternate way is to remove the item from the collection so that it will not show in the combo box

Thanks
Karthik
www.f5Debug.net

Jayakumarv, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response