Results 1 to 6 of 6

Thread: Stylizing individual CheckBoxes in a CheckBoxList

  1. #1

    Thread Starter
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Stylizing individual CheckBoxes in a CheckBoxList

    I'm databinding a CheckBoxList to a database and would like to change the style for each CheckBox created within it.

    I only want to change the border of each CheckBox - I've set up some classes in the CSS to do this.

    However if I set the CssClass of a CheckBoxList it sets the class for the table containing all the CheckBoxes not the individual CheckBoxes.

    Anyone got a solution for this one?

    Cheers

    DJ

  2. #2
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267
    loop through the list and set each ones CSSClass? Bassed on I dunno what.
    Magiaus

    If I helped give me some points.

  3. #3

    Thread Starter
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131
    I tried to loop through but they are stored as ListItems not CheckBoxes and therefore don't have a CssClass Property.

    DJ

  4. #4
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267
    Did you try doing a type cast?
    Magiaus

    If I helped give me some points.

  5. #5

    Thread Starter
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131
    Yep it's not having any of it!

  6. #6
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267
    it figures
    Magiaus

    If I helped give me some points.

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