473,382 Members | 1,648 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,382 software developers and data experts.

How to Select One RadioButton in a Data GRID?

RSB
Hi Every one,

I am using a data grid and one of the TemplateColumn is a asp:RadioBUtton.
Every thing works ok . once i access the page it draws the Grid fine but now
instead of picking one Radio button i am able to Access all.
I am missing any property here??

please help me.

Thank you

RSB

Nov 18 '05 #1
2 1402
Here's a good solution:
http://www.dotnetbips.com/displayarticle.aspx?id=147

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"RSB" <rs*****@hotmail.com> wrote in message
news:bI*****************@news.cpqcorp.net...
Hi Every one,

I am using a data grid and one of the TemplateColumn is a asp:RadioBUtton.
Every thing works ok . once i access the page it draws the Grid fine but
now
instead of picking one Radio button i am able to Access all.
I am missing any property here??

please help me.

Thank you

RSB

Nov 18 '05 #2
Hi, RSB,

What you want to achieve is the behavior of the RadioButtonList, but there
is no way to make one column of a DataGrid be a RadioButtonList. You have in
fact placed X single RadioButton's that can be switched on and off
independant from each other, which is the normal behavior. You can achieve
the behavior you want with some additional coding either on the client-side
or on the server-side (the latter is easier, but will imply a post-back on
each switch).

Greetings
Martin
"RSB" <rs*****@hotmail.com> wrote in message
news:bI*****************@news.cpqcorp.net...
Hi Every one,

I am using a data grid and one of the TemplateColumn is a asp:RadioBUtton.
Every thing works ok . once i access the page it draws the Grid fine but now instead of picking one Radio button i am able to Access all.
I am missing any property here??

please help me.

Thank you

RSB

Nov 18 '05 #3

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

Similar topics

11
by: William Gill | last post by:
I am placing radiobuttons in a 4 X 4 matrix (using loops) and keep references to them in a 2 dimensional list ( rBtns ). It works fine, and I can even make it so only one button per column can be...
0
by: RSB | last post by:
Hi Every one, I am using a data grid and one of the TemplateColumn is a asp:RadioBUtton. Every thing works ok . once i access the page it draws the Grid fine but now instead of picking one Radio...
0
by: RSB | last post by:
Hi Every one, I am using a data grid and one of the TemplateColumn is a asp:RadioBUtton. Every thing works ok . once i access the page it draws the Grid fine but now instead of picking one Radio...
2
by: tshad | last post by:
I have 2 radio buttons set to yes or no: <asp:RadioButton id="RelocateYes" Checked="true" GroupName="Relocate" runat="server" Text="Yes"/> <asp:RadioButton id="RelocateNo" GroupName="Relocate"...
1
by: savvy | last post by:
I have used MetaBuilders.WebControls for including a radiobutton in a datagrid. Its works fine with retreiving the checked radiobutton datagrid row id. but i'm not able to preselect the row...
0
by: savvy | last post by:
savvy Feb 1, 4:23 pm show options Newsgroups: microsoft.public.dotnet.framework.aspnet From: "savvy" <johng...@gmail.com> - Find messages by this author Date: 1 Feb 2006 08:23:19 -0800...
4
by: Patrik | last post by:
hello, based on a client login I call a GridView that presents the appropriate questionnaire for that person. I added three columns (template fields) to the gridview that are radiobuttons. The...
4
by: joseff | last post by:
Hi evryone!! I' m very new not only to Python and Tkinter but to programing. I'm a bit stuck here and would be grateful for some help. I have 3 radio select buttons(see below) which I want to link...
1
by: TapasRanjanRay | last post by:
Hi All I want to select a row with the help of radiobutton click, i have added the radio button in the template of the grid view, i want to change the colour of the selected row by checking...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.