473,662 Members | 2,622 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Making a list with radio buttons

I'm working on a "pokédex" for people who play Pokémon. I need to have
a list of all the pokémon, along with a set of radiobuttons for each.

I've initially tried a ListView control, with the details view, but if
it's possible to add a radio button I can't figure out how.

I know that I've seen an example of an application that had a list of
things with checkboxes before when I was first learning c#, but I
can't for the life of my remember where or what control they used.

You can see an example of what I'm working on here:
http://www.asmor.com/images/post/07-...exscreen01.jpg

Ideally there would be a radio button under the N, S and H columns for
each line (and each line's radio buttons would be a "group," i.e. only
one of the three can be checked at any time).

I'm guessing there's some other control that's better suited to this
task. Suggestions?

May 15 '07 #1
1 7236
Try to have a look at this:

http://www.codeproject.com/cs/combobox/RadioListBox.asp

Looks nice, but I haven't tried it.

Cheers,
Johnny J.

"Ian Toltz" <it****@gmail.c omwrote in message
news:11******** *************@y 80g2000hsf.goog legroups.com...
I'm working on a "pokédex" for people who play Pokémon. I need to have
a list of all the pokémon, along with a set of radiobuttons for each.

I've initially tried a ListView control, with the details view, but if
it's possible to add a radio button I can't figure out how.

I know that I've seen an example of an application that had a list of
things with checkboxes before when I was first learning c#, but I
can't for the life of my remember where or what control they used.

You can see an example of what I'm working on here:
http://www.asmor.com/images/post/07-...exscreen01.jpg

Ideally there would be a radio button under the N, S and H columns for
each line (and each line's radio buttons would be a "group," i.e. only
one of the three can be checked at any time).

I'm guessing there's some other control that's better suited to this
task. Suggestions?
May 16 '07 #2

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

Similar topics

3
3583
by: Suzanne | last post by:
Hi, I have a form which our clients can fill in with their personal details. As part of the information we store there is a section - areas of interest - this is a number of radio buttons. I need to be able to send to a stored procedure the areas that the client has selected so these can be stored in the database.
1
6140
by: sman | last post by:
Hi, I recently read this article on About.com on how to create required fields for a form: http://javascript.about.com/library/scripts/blformvalidate.htm Everything works great except that there are no instructions on how to make checkboxes and radio buttons required. I've tried adding these to my form, but I'm having no luck. Anyone know how to add radio buttons and checkboxes using the existing code mentioned on the url? Thank you!
3
1409
by: Peter Aitken | last post by:
I am working on a VC++ program in VS.Net 2003. I am following the instructions in the help for putting a group of radio buttons on a form. 1) Put 3 radio buttons on the form. 2) Make sure they are seqential in the tab order. 3) For the first one in the tab order, set the Group property to true. 4) Right click the first one in the tab order and select Add variable. 5) Select the Control check box. 6) From the Category list select value....
2
5425
by: Rob | last post by:
Hi all, I've got multiple sets of radio button that are dynamically created in code and populated by a database query. The query returns about 20 recordsets with 3 radio buttons per recordset and I want to be able to retrieve the selected value from each of the sets of radio buttons.The names of each group of radio buttons is set by the database and I don't know how to retrieve the values because I don't know the names of these radio...
3
2462
by: Ferret Face | last post by:
Hello, I have a web page that gets the user to select items from a list of options. This list is a set of independant Radio Buttons. I did not use a Radio Button List because I wanted the possibility of multiple selections. However, one item is "None of the above" and I have placed some logic (autopostback, etc.) that will remove all previous selections if "None of the above" is chosen. My problem is this: This list of Radio Buttons...
4
2512
by: Blasting Cap | last post by:
I have a page that has a number of radio buttons that will be displayed to different access levels of a user who logs in to my website. For instance, if there are a dozen buttons, user1 will see all twelve. User2 would see buttons 1-3,10-12 and NOT any others, and so on. Since there are several buttons on the page (each one would run a report for them), is there a way to - in an onclick event for each of the buttons - to...
12
10496
by: Ashvini Shanbhag | last post by:
Hi, i m new in javascript. i have the below problem. Plz help. There are two main radio buttons and list of radio button under each one . On selecting of the first radio button a list of radio buttons under it must be selected . And on selecting the other radio button the list of radio buttons must be cleared under the first one and the list under the second must be selected.
11
2265
by: Twayne | last post by:
Hi, Newbie to PHP here, no C or other relevant background, so pretty niave w/r to the nuances etc. but I think this is pretty basic. XP Pro, SP2+, PHP 4.4.7, XAMPP Local Apache Server 6.something I think and running as a service, Using NoteTab Pro as an IDE (works well). If you need more, just ask. In one functioning form:
7
4345
by: gengyue | last post by:
Hi, I am running a report using Cold Fusion. This report is generated by cfloop tag. Depends on the record count of a query, the report will list the data retrieved from the database. each row in the report will have a radio button, so there may be lots of radio buttons in this report. These radio buttons are defined in a form tag. User will select a radio button and then click a submit button to an action page to show more detail...
0
8432
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8344
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8857
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8764
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...
0
7367
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5654
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
4180
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
2762
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
2
1993
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.