Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling Certain Items in RadioButtonList

Status
Not open for further replies.

mikeyc330

Programmer
Oct 7, 2005
5
US
Hello,
Is there a good way to disable certain items in a radiobuttonlist? From poking around, it looks like there isn't an easy way, but I thought I would check here.

TIA
 
Yes, it's easy. Test for the particular radio button being enabled, if it is enabled, set enabled to false. They make sure in your code at some point to re-enable it (if you need that particular radio button at a later time).

I.E. If radiobutton.enable = True Then
radiobutton.enable = False
EndIf
 
I am talking about a RadioButtonList, not just radio buttons. There is no enabled property for the items in a RadioButtonList.
 
The RadioButtonList is, I believe a WebForms control. That being the case you may have more success on the ASP.NET forum.


Hope this helps.

[vampire][bat]
 
Try doing a google search. I found several examples. And NO, it';s NOT difficult to do.
 
I have searched and found nothing. What did you search for?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top