How can you highlight or disable a selection in a listbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need disable or highlight a selection in a listbox to indicate that it has
been selected before. I can already determine what values wereselected by
storing those values in a stateview. Yet, how can I disable or point out
those values were previously selected in a listbox and recorded.
 
Is this ASP or rich client.

For a rich client, there are 3 basic ways I know of.
1. Use a multi-select list
2. Use and owner draw listbox which requires you to render each item in the
list. This will allow you to mark items as disabled using any indicator you
want (colour, picture, font, etc)
3. Use a list view and change the colour of the text (and possibly the icon)
of the disabled item

For ASP, you could probably
1. Use a multi-select list
2. Create a table to display the list and insert it in an IFRAME or other
scrollable page area. Use CSS to colour the list accordingly.

I hope this helps

Mark
 
Back
Top