Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to generate a radiobutton list based on the value of the current field value. For example, if the current field value in DB is "One" then the radiolist options, available via edit mode in Gridview, should be One and three. If the field value is "Two" then the radiolist options should be Two and Three.

When I doubleclick the control in editmode, I only get a SelectedIndexChanged event.

I am new to ASP.NET and C#.

Thank you!
Posted
Updated 13-Oct-10 4:32am
v3

1 solution

So on rowdatabound event of gridview, create an object of radiobuttonlist according to value and add this control to the collection.
 
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