Re: How to change the Selected Item's forecolor in ListBox-URGENT
- From: "Andrew Backer" <awbacker@xxxxxxxxx>
- Date: 1 Aug 2005 13:41:41 -0700
I do belive it is possible, though I haven't tried it :) Something
like this code should work, though of course you will have to determine
when to set it, and replace with your own listbox :)
ListItem itm = myList.Items[ myList.SelectedIndex ];
itm.Attributes.CssStyle.Add("color:white");
- Andrew
<no website to plug>
ps. post useful answers, M. this is a webcontrols forum.
.
- Prev by Date: Re: Change radio button size or color?
- Next by Date: Re: Adding eventhandler dynamically to usercontrol
- Previous by thread: Re: How to change the Selected Item's forecolor in ListBox-URGENT
- Next by thread: Re: FireFox does not acknowledge style attribute on <INPUT> tag
- Index(es):
Relevant Pages
|