|
-
Feb 24th, 2003, 05:01 PM
#1
Thread Starter
Lively Member
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
-
Feb 24th, 2003, 06:03 PM
#2
Addicted Member
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.
-
Feb 25th, 2003, 08:14 AM
#3
Thread Starter
Lively Member
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
-
Feb 25th, 2003, 10:25 AM
#4
Hyperactive Member
You mean you want to set the properties for a particular row that is returned?
-
Feb 25th, 2003, 10:47 AM
#5
Thread Starter
Lively Member
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
-
Feb 25th, 2003, 12:32 PM
#6
PowerPoster
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|