Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 15th, 2008, 1:01 PM   #1
hbe02
Hobbyist Programmer
 
hbe02's Avatar
 
Join Date: Mar 2006
Location: Lebanon
Posts: 148
Rep Power: 3 hbe02 is on a distinguished road
CheckBoxList

whats the attribute of the CheckBoxList so i can have only 1 selected at a time. or should i do that in code?
hbe02 is offline   Reply With Quote
Old Apr 15th, 2008, 1:30 PM   #2
Arla
Hobbyist Programmer
 
Join Date: Mar 2005
Posts: 143
Rep Power: 4 Arla is on a distinguished road
Re: CheckBoxList

Isn't that a radiobutton list?
Arla is offline   Reply With Quote
Old Apr 15th, 2008, 1:37 PM   #3
hbe02
Hobbyist Programmer
 
hbe02's Avatar
 
Join Date: Mar 2006
Location: Lebanon
Posts: 148
Rep Power: 3 hbe02 is on a distinguished road
Re: CheckBoxList

no its checkbox list. im using visual developer
hbe02 is offline   Reply With Quote
Old Apr 15th, 2008, 1:37 PM   #4
hbe02
Hobbyist Programmer
 
hbe02's Avatar
 
Join Date: Mar 2006
Location: Lebanon
Posts: 148
Rep Power: 3 hbe02 is on a distinguished road
Re: CheckBoxList

still they should have the same attribute name
hbe02 is offline   Reply With Quote
Old Apr 15th, 2008, 9:12 PM   #5
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 747
Rep Power: 3 Jimbo is on a distinguished road
Re: CheckBoxList

Why not use a RadioButtonList though? The definition of that is single-select, whereas CheckboxList provides a multi-select functionality. Unless you want something that clears the rest, like this:
select all that apply:
[] a
[] b
[] c
[] none of the above
In which case, when the last one is selected, I'd just set the others to not selected.
__________________
<insert disclaimer here>
<insert shameless plug for Visual Studio here>
Jimbo is offline   Reply With Quote
Old Apr 15th, 2008, 11:24 PM   #6
xavier
Professional Programmer
 
xavier's Avatar
 
Join Date: Oct 2004
Location: .ro
Posts: 372
Rep Power: 4 xavier is on a distinguished road
Send a message via Yahoo to xavier
Re: CheckBoxList

Quote:
Originally Posted by hbe02 View Post
whats the attribute of the CheckBoxList so i can have only 1 selected at a time. or should i do that in code?
You have to do that in code. On the CheckedChanged event , you clear all the currently checked items, and check the right one.
__________________
Don't take life too seriously, it's not permanent !
xavier is online now   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:21 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC