The Wrox Professional ASP.NET in C# and
VB has a section called "Visually Removing Items from a Collection." DropDownList, ListBox, CheckBoxList and RadioButtonList capability to visually remove items from the collection displayed in the control, although you can still code with it. It reads, "If you use Enabled="False", the item is not displayed."
I am working with a RadioButtonList. I would like to code one of the items but not show it. The book sounds perfect for what I need. However, the enabled only grays it out but still visible.
It seems to me that graying out is what enable should do so I was surprised by the book explaining it this way. I know the whole RadioButtonList has a visible property that can be set to false but the individual items only have enable.
Thoughts on the book seemingly wrong here?
Thanks.