Geeks With Blogs
AzamSharp Some day I will know everything. I hope that day never comes.

I am working on a project that required that each GridView row has one RadioButtonList. User can make a choice/selection from the list and when the button is clicked I will extract all the choices. The problem was that when the button was clicked, RadioButtonList forgots all the choices and returns the default values which was index 0 for all the rows. After spending some considerable amount of time on this problem I made the whole thing using dynamically creating the HTML and adding the RadioButtons at runtime. The name of the RadioButtons have to be same for one row of the Table.

I write an article on this which will give you better idea.

Stay tuned!  

powered by IMHO 1.3

Posted on Thursday, March 16, 2006 11:35 PM | Back to top


Comments on this post: RadioButtonList in GridView Control

# re: RadioButtonList in GridView Control
Requesting Gravatar...
try below coding in your gridview

<columns>
<asp:TemplateField HeaderText="Select">
<ItemTemplate >
<asp:RadioButton ID="rd1" GroupName="rdBox" runat="server" />
</ItemTemplate>
</asp:TemplateField>
</columns>
Left by kamalakannan A on Mar 27, 2008 6:31 AM

Your comment:
 (will show your gravatar)


Copyright © Mohammad Azam | Powered by: GeeksWithBlogs.net