473,588 Members | 2,574 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

SD
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
Nov 20 '05 #1
3 3439
You might want to consider using radio buttons if only one checkbox can be
selected at a time in the list.

"SD" <np****@nowhere .net> wrote in message
news:II******** ********@roc.nn tpserver.com...
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

Nov 20 '05 #2
* "SD" <np****@nowhere .net> 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/>
Nov 20 '05 #3
Radio buttons or groupbox with checkboxes...

Telmo Sampaio

"SD" <np****@nowhere .net> wrote in message
news:II******** ********@roc.nn tpserver.com...
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

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
7942
by: Bryce Budd | last post by:
Hello All, I've been a taker of information from newsgroups for a long time and thought I'd finally make a contribution back to the community whose supported me when I've needed it. After all before commercialization took over that was the beauty of the Internet! I've create a checkboxlist validator control...something MS should have done originally in my opinion, but nonetheless here it is. It's a C# control, sort of IE specific. ...
4
8064
by: dm_dal | last post by:
Is there a know issue surrounding the CheckBoxList control and it's viewstate? When my control is created, it's ListItems are checked as needed, but on a postback, they loose their Selected status. David
2
2280
by: Ratman | last post by:
I have the following function that created a checkboxlist and "is supposed" to be checking values that are already saved in the database. As I step thru the code, it is in fact marking the approporiate checkboxes as checked as I watch them in the watch windo and I see the execution of the code go into the appropriate code blocks. The problem is, the checkboxes are not being checked on th UI. Any ideas here? This function is being...
5
13378
by: Patrick.O.Ige | last post by:
I'm binding a CheckBoxlist below in the ItemDataBound(the CheckBoxList is in a Datalist) By doing "li.Selected = True" i can see all the checkBoxes are selected. But what i want is to be able to get a Boolean value TRUE or FALSE when a checkBox is selected. When the checkBoxList was out of the DataList i used "OnSelectedIndexChanged" and it was returning what i wanted but if its in a
4
4033
by: Patrick.O.Ige | last post by:
I have a CheckBoxList in a DataList and i'm trying to get item Selected after doing a postBack. I have set my CheckBoxlist AutoPostBack="True" Any ideas what 'm doing wrong? It seems not to work:( Thanks My CheckBoxList in the DataList Below
1
1483
by: Patrick.O.Ige | last post by:
I have CheckboxList Databinded below and that works fine and i can get the selected values after PostBack. But what i have noticed is that when you select a checkbox i.e lets say 3 of them and later unselect them the last one u unselect remains printed out on the screen. How can i reset Checkboxlists back to NULL. I need to do this becos i'm passing the values to a QueryString and if the unselect and remains in the queryString its a...
2
407
by: jase_rw | last post by:
Hi There, Having trouble with a CheckBoxList in VB.NET. I've a CheckBoxList on a webform. I read some data from a database and try and check the appropriate boxes based on the data. Unfortunately, the CheckBoxList seems to behave like a RadioButtonList and only leaves the last item checked. I've even tried just to hard code 2 boxes being checked and that just
1
1101
by: Jeppe Jespersen | last post by:
Checkout a little 3-minuter video i made, illustrating my problem. http://www.netkoder.dk/cl/ Any ideas? Jeppe
6
3492
by: dbuchanan | last post by:
There are three parts to this 1.) How do I cascade menus? 2.) And, how do I cascade menus with a multi-select CheckBoxList?
3
5863
by: onlyprad | last post by:
Hi, I am populating the checkboxlist in (!IsPostBack) block of page load event with some checked items. After populating with checked items I am iterating through the items collection and applying color style for checked items. The below method is called from !IsPostBack() public static void PopulateCheckBoxList(CheckBoxList checkBoxList, ArrayList nameValueList, ArrayList selectedItemsList)
0
8352
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7981
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8222
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5723
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5396
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3846
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2367
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1457
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1194
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.