Geeks Talk

Prepare for your Next Interview




how could I group radio buttons in datagrid?

This is a discussion on how could I group radio buttons in datagrid? within the C# forums, part of the Software Development category; radio buttons cannot be grouped in datagrid...


Go Back   Geeks Talk > Software Development > C#

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-28-2008
Junior Member
 
Join Date: Feb 2008
Location: Ajmer
Posts: 2
Thanks: 0
Thanked 2 Times in 2 Posts
prash98in is on a distinguished road
Question how could I group radio buttons in datagrid?

radio buttons cannot be grouped in datagrid
Reply With Quote
The Following User Says Thank You to prash98in For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 05-28-2008
Contributing Member
 
Join Date: Jun 2007
Location: Delhi, India
Posts: 50
Thanks: 0
Thanked 21 Times in 17 Posts
vikasvaidya is on a distinguished road
Re: how could I group radio buttons in datagrid?

Hi Prash,

The basic funda to group radio buttons is to ensure that all should have same GroupName property.

For this u can choose following options
1. Find RadioButton controls in Grid by using FindControl function and set GroupName="MyGroup" for each of them in PreRender event

2. Create an ItemTemplate, add RadioButton into it and set its GroupName ot MyGroup


---V V---
Vikas Vaidya

Please mark this post as Thank if u find the answer useful
Reply With Quote
  #3 (permalink)  
Old 06-04-2008
Expert Member
 
Join Date: Dec 2007
Location: Pune
Posts: 139
Thanks: 0
Thanked 6 Times in 6 Posts
peeyush_jain is on a distinguished road
Re: how could I group radio buttons in datagrid?

Thanks, very good answer.
Also you can paste radio buttons and make it in list and set list property to only one select
Reply With Quote
  #4 (permalink)  
Old 07-29-2008
Junior Member
 
Join Date: Jul 2008
Location: India
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
prsoorya is on a distinguished road
Re: how could I group radio buttons in datagrid?

Radio buttons should have same GroupName property. Create an ItemTemplate, add RadioButton into it and set its GroupName as you like. There is a control for finding the RadioButton controls in Grid by using FindControl function and set GroupName="gname"
Reply With Quote
Reply

  Geeks Talk > Software Development > C#


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Script for Radio Button plnsrikanth QTP 1 01-03-2008 08:13 AM
Browser buttons through CSS iravhari HTML & CSS 0 05-13-2007 03:34 AM
test cases for Radio neetisharma Test Cases 4 04-18-2007 06:57 AM
Is it possible to change the initial value of radio group in oracle forms vijaycsvk Oracle 0 04-09-2007 08:31 AM
What is Satellite Radio suji Geeks Lounge 0 05-26-2006 09:10 AM


All times are GMT -4. The time now is 05:50 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved