Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How add RadioButtonList control to GridView Control in C# .NET appliction

How add RadioButtonList control to GridView Control in C# .NET appliction

Scheduled Pinned Locked Moved C#
csharphelptutorialquestion
2 Posts 2 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Murugan k
    wrote on last edited by
    #1

    Hi, I need develop an quiz project using GridView Control . I try to include question with RadioButtonList in single cell but i am unable to embeded RadioButtonList for GridView Control .kindly suggest me how to solve this problem. Thanks, Murugan k

    R 1 Reply Last reply
    0
    • M Murugan k

      Hi, I need develop an quiz project using GridView Control . I try to include question with RadioButtonList in single cell but i am unable to embeded RadioButtonList for GridView Control .kindly suggest me how to solve this problem. Thanks, Murugan k

      R Offline
      R Offline
      Ravi Mori
      wrote on last edited by
      #2

      Hi, Try out like this: <asp:GridView ID="GridViewContactOptions" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="AccessDataSourceContactOptions" Width="494px"> <Columns> <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True" SortExpression="ID" /> <asp:BoundField DataField="AccountNo" HeaderText="AccountNo" SortExpression="AccountNo" /> <asp:BoundField DataField="Contact" HeaderText="Contact" SortExpression="Contact" /> <asp:TemplateField HeaderText="HN"> <ItemTemplate> <asp:RadioButtonList AutoPostBack="true" ID="RadioButtonListHydraNotes" runat="server" Enabled="true" RepeatDirection="Horizontal" TextAlign="Left" SelectedIndex='<%#Convert.ToInt32(DataBinder.Eval(Container.DataItem , "HydraNotes"))%>' OnSelectedIndexChanged="rbl_SelectedIndexChanged"> <asp:ListItem Value="1">E</asp:ListItem> <asp:ListItem Value="2">F</asp:ListItem> <asp:ListItem Value="3">M</asp:ListItem> </asp:RadioButtonList> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView>

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups