Question

Disable RadioButton in a list

Posted 6 years ago by Avatar billb - Software Craftsman, Yye Software
I can't seem to figure out how to disable a single radio button that exists in the RadioButtonList. How do I do this?

Comments (3)

Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA
Bill,

If you set the ListBoxItem.IsEnabled property to false, that should do it.

Actipro Software Support
Posted 6 years ago by billb - Software Craftsman, Yye Software
And where do I find that? Sorry, I feel like I'm missing something basic here.
Posted 6 years ago by billb - Software Craftsman, Yye Software
Never mind, I figured it out.
ListBoxItem item = radioButtonListStep2.ItemContainerGenerator.ContainerFromIndex(2) as ListBoxItem;

Add a Comment

Please log in to a validated account to post comments.