Greyed options in ListBox .NET 2.0

  • Thread starter Thread starter Simon
  • Start date Start date
S

Simon

Hi folks,

I have a situation where I might like to grey out certain options in a
ListBox and hence make them unselectable. Does anyone know if this is
possible?

Comments are welcome, but I'm fully aware that I could just remove the
options that I don't want selected, and in fact I may well just do that
but it would make more sense for my application if I could leave them
there but greyed out.

Cheers

Simon
 
I don't know if this helps but I recently encountered a problem that might
be useful for you. If selecting a certain listviewitem was causing a
exception to be thrown, i found that this item could not be selected at all.
In my case I had the items tag databound to some controls etc ... but i
guess mostly the app would just crash ... but maybee it could be a hint for
you ...

/Andreas Zita
 
Back
Top