-
checkBoxList control
Hi,
In an web page I use an checkboxlist to display some checkboxes from a table.
Everithing is working. My question is: It is possible to have one of the checkbox (from the checkbox list) that is not available to the user: the checkbox must be checked, but the user must not be able to do uncheck. I want to show the checkbox checked, but to be "greyed" like readonly?
Thank you
svatasoiu
-
If i remember correctly I'm pretty sure there is an ENABLED property associated with checkboxes. Setting this value to false should make it unchangable.
-
You are right, but that property apply to the whole checkbox list.
What I want, is to make 'readonly' only one checkbox from the list not all of them.
Do you think this is possible?
Thank you,
svatasoiu
-
You mean you want to set the properties for a particular row that is returned?
-
Yes,
The checkbox list is only one control, that will generate when it will be bound to a table a number of checkboxes (but I think those are viewed as an single control) What I want is to be able to make 'readonly' only one of those checkboxes.
It may not be possible, I could not figure out a way to do this with checkbox list
Thank you,
svatasoiu
-
Maybe you can access each one by using an index since they are a collection of the main control. Something like:
box.Item(2).Enabled = false