473,396 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 2796
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*@razorvision.net> wrote in message
news:bd********@library2.airnews.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
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...
1
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...
5
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 --...
6
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...
1
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....
4
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...
1
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...
2
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...
2
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...
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
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...
0
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...
0
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,...

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.