943,936 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 2547
  • ASP.NET RSS
Dec 15th, 2008
0

how to set particular item as bold using Dropdownlist

Expand Post »
hi all,
i search in google, i didt get any solu.so raised ? here.if anybody know plz let me know thnks
Similar Threads
Reputation Points: 10
Solved Threads: 23
Junior Poster
Renukavani is offline Offline
123 posts
since Jul 2008
Dec 16th, 2008
0

Re: how to set particular item as bold using Dropdownlist

try either or the codes below:

dropdown1.Items.FindByValue("0").Attributes.Add("style", "font-weight:bolder")
or

dropdown1.Items.FindByValue("0").Attributes.Add("style", "font-bold:true")

Let me know
Reputation Points: 25
Solved Threads: 18
Practically a Master Poster
binoj_daniel is offline Offline
645 posts
since Dec 2006
Dec 16th, 2008
0

Re: how to set particular item as bold using Dropdownlist

hi bio\
thnks for reply.i tried this way also before raise my ? here.but its not supporting to DDlist.any more idea plz
Reputation Points: 10
Solved Threads: 23
Junior Poster
Renukavani is offline Offline
123 posts
since Jul 2008
Dec 17th, 2008
0

Re: how to set particular item as bold using Dropdownlist

ASP.NET Syntax (Toggle Plain Text)
  1. <select>
  2. <option>Yes</option>
  3. <option style="background-color: yellow; font-weight:bold;">No</option>
  4. <option>Maybe So</option>
  5. </select>

This will work fine in Firefox but ie does not support it. An alternative will be to use the background-color property to highlight an option rather than making it bold.
Happy Programming
Last edited by peter_budo; Dec 17th, 2008 at 8:09 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reputation Points: 16
Solved Threads: 18
Junior Poster
Aneesh_Argent is offline Offline
104 posts
since Dec 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Upload of a file in server using asp.net
Next Thread in ASP.NET Forum Timeline: query about uploading a file





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC