Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there,
I am using aspx,c#
In my page I have a CheckBoxList control and I have 3 items on it. I would like to set at a time only one item as checked in every row of gridview .Could you please help me?
Posted

Instead of checkboxlist why dont you use radiobuttonlist.
 
Share this answer
 
Comments
sharmarun 14-Jul-10 8:13am    
r u sure i it possible wid rdiobuttonlist
Shining Legend 14-Jul-10 8:20am    
yes provided you specify the groupname for every radiobutton in a row.
Sandeep Mewara 14-Jul-10 8:51am    
To Enquirer: Stop using text speaks like 'r','wid'!
sharmarun 15-Jul-10 1:01am    
Thanxz a lot Priya
sharmarun 15-Jul-10 2:22am    
but how to find which item in radiobuttonlist is checked or selected
iterate through the items in the radiobuttonlistid.items collection and see which radiobutton is selected.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900