473,698 Members | 2,943 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RadioButtonList Question -- Probably Simple

Ron
I want to add radio buttons to a datagrid. The datagrid is displaying 5-10
items, and I want the user to select the desired item via radiobutton. As it
is, the user can select as many radiobuttons as they want, which is
obviously not what I want. I want to limit the user to being able to select
one radiobutton at a time.

How can I add a radiobutton list to a datagrid? Does anyone have a
suggestion/example?

Thanks,

Ron
Nov 17 '05 #1
2 2815
I am not sure how you would create a radio button list spanning different
rows in a grid. You could probably write some javascript, that would
unselect all radiobuttons but the one that was last selected.

"Ron" <ro*@razorvisio n.net> wrote in message
news:bd******** @library2.airne ws.net...
I want to add radio buttons to a datagrid. The datagrid is displaying 5-10
items, and I want the user to select the desired item via radiobutton. As it is, the user can select as many radiobuttons as they want, which is
obviously not what I want. I want to limit the user to being able to select one radiobutton at a time.

How can I add a radiobutton list to a datagrid? Does anyone have a
suggestion/example?

Thanks,

Ron

Nov 17 '05 #2
Hi,

This link will be helpfull.

http://www.dotnetbips.com/displayarticle.aspx?id=147

regards
Sreejumon
DOTNET makes IT happen
-----Original Message-----
I want to add radio buttons to a datagrid. The datagrid is displaying 5-10items, and I want the user to select the desired item via radiobutton. As itis, the user can select as many radiobuttons as they want, which isobviously not what I want. I want to limit the user to being able to selectone radiobutton at a time.

How can I add a radiobutton list to a datagrid? Does anyone have asuggestion/example?

Thanks,

Ron
.

Nov 17 '05 #3

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

Similar topics

6
5664
by: Hazzard | last post by:
I store radiobuttonlist values in the db using the string value of the radio button item value. (nvarchar) I am creating an edit functionality on the asp.net form so that when I reuse my dataentry form for edit, I search the database for the row containing the data I want, and then populate all the form fields. here is what I have so far. What I don't know what to do is for cases where a dirty database has no associated value for the...
1
1775
by: Michael | last post by:
Hi, This should be fairly simple, but it is driving me nuts. First off I have a table in SQL Server, with a column of type "bit". This is meant to store a answer to a Yes/No question. I'm trying to display this stored value in SQL Server in a RadioButtonList in ASP.NET. I have the value stored in ado.net DataSet, which I can reference just like this myDataSet.Tables(0).Rows(0)("my_bit_column")
5
5509
by: DotNetGruven | last post by:
Anyone have any pointers on how to set the Value and Selected attributes in a ListItem in a RadioButtonList that is in a DataGrid? Here's what I have ------DataGrid------ -- BoundColumn 0 -- -- BoundColumn 1 -- -- BoundColumn 2 -- -- TemplateColumn 4 -- -- RadioButtonList --
6
7747
by: DotNetGruven | last post by:
I have a webform that has a DataGrid on it with a RadioButtonList in each row. It is a simple On & Off. When the User Clicks on either of the RadioButtons, I need to postback to the server and update the database. Here is the control containment hierarchy: ASP Page Static User Control // just provides a pretty border around
1
1519
by: V. Jenks | last post by:
I have a RadioButtonList and an ImageButton in my form. In the ImageButton Click event handler I'm trying to redirect to a new page, passing the value from the RadioButtonList in a querystring. Why do I get a null reference when trying to get the value of the RadioButtonList? some code:
4
9653
by: Emil | last post by:
Can somebody tell me what would be the syntax for having an if statement and setting the selected index of a radiobuttonlist? This is my first project using ASP.net and I use C#. I have a repeater with like a table layout and in the last column I want to have three radio buttons (for each row in repeater). The value of the radio button should be calculated from a value from the dataset. How can I do that? When I try to use a variable...
1
3458
by: Groove | last post by:
I've searched numerous threads and posts and can't seem to find a fitting answer. Hopefully this is simple - it seems very simple. I'm trying to set a SelectedValue of a RadioButtonList to a value from a db record upon page load. Yet, when the page loads, the RBL has nothing selected. Any ideas? The value from the record is definitely a 0 or a 1. ....in page_load ..
2
381
by: Dot Net Daddy | last post by:
I have a radioButtonList. It is AutoPostBack Enabled. And on every postBack the selected item stays there. I want on every page_load no item in the RadioButtonList to be selected. How can I do this? Thanks in advance.
2
4009
by: ricardo.sobral.santos | last post by:
Hello, I am trying to get the value of the radiobuttonlist. The problem is that I need it to be unselected at every page load. The radiobuttonlist is set to autopostback (true). My idea is simple. When I select a value, I get it, insert something into the database with that value and the page loads again with different data. Imagine a questionnaire and every page load a random question would be load on screen and when the user clicks...
5
2686
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hallo, I have a radiobuttonlist control that is added on a custom Web User Control. This control has a property that exposes the SelectedIndex property of the embedded radiobuttonlist. When running this in IE, behaviour is as I would expect it. If I select an item and do a postback, the page remembers my selection when reloading, and the SelectedIndex property of my control returns the correct value.
0
8683
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
9170
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
9031
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
8873
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...
0
7740
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
4372
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...
0
4623
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
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
3
2007
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.