Results 1 to 6 of 6

Thread: checkBoxList control

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    MA, US
    Posts
    78

    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

  2. #2
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251
    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.
    ~Ryan





    Have I helped you? Please Rate my posts.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    MA, US
    Posts
    78

    Question

    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

  4. #4
    Hyperactive Member
    Join Date
    Jan 2003
    Location
    Cape Cod, US
    Posts
    292
    You mean you want to set the properties for a particular row that is returned?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    MA, US
    Posts
    78
    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

  6. #6
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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
  •  



Click Here to Expand Forum to Full Width