PC Review


Reply
Thread Tools Rate Thread

CheckBoxList how to tell the last item selected?????

 
 
SD
Guest
Posts: n/a
 
      15th Jul 2004
Hello,

I'm banging my head against the wall on this issue. How can you tell which
checkbox was the last one clicked by the user?

..SelectedIndex simply returns the lowest ordinal value of thos checkboxes
selected.

I need to have this becaue I would lilke to clear all but one checkmark at
anyone time. There's got to be a way right

- Sd


 
Reply With Quote
 
 
 
 
Marina
Guest
Posts: n/a
 
      15th Jul 2004
You might want to consider using radio buttons if only one checkbox can be
selected at a time in the list.

"SD" <(E-Mail Removed)> wrote in message
news:IIzJc.3547$(E-Mail Removed)...
> Hello,
>
> I'm banging my head against the wall on this issue. How can you tell which
> checkbox was the last one clicked by the user?
>
> .SelectedIndex simply returns the lowest ordinal value of thos checkboxes
> selected.
>
> I need to have this becaue I would lilke to clear all but one checkmark at
> anyone time. There's got to be a way right
>
> - Sd
>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      15th Jul 2004
* "SD" <(E-Mail Removed)> scripsit:
> I'm banging my head against the wall on this issue. How can you tell which
> checkbox was the last one clicked by the user?
>
> .SelectedIndex simply returns the lowest ordinal value of thos checkboxes
> selected.
>
> I need to have this becaue I would lilke to clear all but one checkmark at
> anyone time. There's got to be a way right


I would consider to use a group of option buttons or a combobox
instead of the checkedlistbox.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
Telmo Sampaio
Guest
Posts: n/a
 
      15th Jul 2004
Radio buttons or groupbox with checkboxes...

Telmo Sampaio

"SD" <(E-Mail Removed)> wrote in message
news:IIzJc.3547$(E-Mail Removed)...
> Hello,
>
> I'm banging my head against the wall on this issue. How can you tell which
> checkbox was the last one clicked by the user?
>
> .SelectedIndex simply returns the lowest ordinal value of thos checkboxes
> selected.
>
> I need to have this becaue I would lilke to clear all but one checkmark at
> anyone time. There's got to be a way right
>
> - Sd
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
add item to checkboxlist E. Kwong Microsoft ASP .NET 1 24th Aug 2009 07:31 PM
checkboxlist - selected item sequence yh Microsoft ASP .NET 1 20th Nov 2008 05:27 AM
getting the value of a selected/unselected item in a checkboxlist Brett Wesoloski Microsoft C# .NET 4 13th Jun 2007 04:01 PM
checkboxlist selected item Alex D. Microsoft ASP .NET 3 5th Feb 2006 07:14 AM
How to get Selected item in a Databinded CheckBoxList when CheckBoxlist is in a DataList? Patrick.O.Ige Microsoft ASP .NET 5 19th Jun 2005 07:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:12 PM.