Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > RadioButtonList(HTML) Control in a GridView

Reply
Thread Tools

RadioButtonList(HTML) Control in a GridView

 
 
Andy in South Jersey
Guest
Posts: n/a
 
      07-07-2008
I want to use a RadioButtonList Control(HTML) in a GridView control.

I can see the RadioButtonList control with each row in the GridView with the
code:

<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns="False" DataKeyNames="Question_id"
DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="q_Description"
HeaderText="Question" SortExpression="q_Description" />
<asp:BoundField DataField="Answer_id" HeaderText="Answer_id"
SortExpression="Answer_id" />
<asp:TemplateField HeaderText="Level of Helpfulness">
<ItemTemplate>
<asp:RadioButtonList ID="RadioButtonList1"
runat="server" RepeatDirection="Horizontal" SelectedValue='<%#
Bind("Answer_id") %>'>
<asp:ListItem Value="1">None</asp:ListItem>
<asp:ListItem Value="2">Minimal</asp:ListItem>
<asp:ListItem Value="3">Moderate</asp:ListItem>
<asp:ListItem Value="4">Very</asp:ListItem>
<asp:ListItem Value="4">Highly</asp:ListItem>
</asp:RadioButtonList>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>

Now I want to be able to insert rows in a table and get the value selected
in the RadioButtonList.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView Hierarchical View - Gridview in Gridview =?Utf-8?B?bWdvbnphbGVzMw==?= ASP .Net 1 05-09-2006 06:48 PM
GridView control - getting the datafield name in a BoundField control mz ASP .Net 0 03-26-2006 03:07 PM
Web User Control with GridView can derive new Web User Control? ABC ASP .Net 1 10-04-2005 12:29 PM
Web User Control with GridView can derive new Web User Control? ABC ASP .Net 0 10-03-2005 10:23 AM
How to custom gridview control if it derive from web user control? ABC ASP .Net 0 10-03-2005 10:22 AM



Advertisments