CheckBoxList Enabled?

T

Tim

Is there a way to only disable the check box but not the text in a
CheckBoxList?

cblCheckBoxList.Enabled = false will gray out the box and the text
associated with the box.

I would only like the box to be disabled so the user can easily read
the text.

Any help would be appreciated.

-Tim
 
M

Michelle Hlaing

--------------------
From: (e-mail address removed) (Tim)
Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
Subject: CheckBoxList Enabled?
Date: 4 May 2004 12:18:50 -0700

Is there a way to only disable the check box but not the text in a
CheckBoxList?

cblCheckBoxList.Enabled = false will gray out the box and the text
associated with the box.

I would only like the box to be disabled so the user can easily read
the text.

Any help would be appreciated.

-Tim

hi Tim,

In general, the purpose of grayed out text is so that the user themselves can identify that the control is disabled, and are not confused as to why the control
is not responding towards their selection. but to answer your question, the best workaround is to not put text values for each item in the checkbox list but
instead use labels to indicate the value of each check box. This way when you disble the Checkbox list, you are not disabling the Labels as well

Hope that helps,

Michelle

***Disclaimer: This posting is provided "as is" with no warranties and confers no rights.***
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,142
Messages
2,570,819
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top