Grouping RadioButtons in a DataGrid

Discussion in 'ASP .Net Datagrid Control' started by Sheikh Nabeel Moeen, Sep 15, 2004.

  1. Hello,
    I have a TemplateColumn as the first column in my datagrid to display
    radiobuttons for selection of rows.
    The problem is, when the table (dataGrid) is generated all the Radiobuttons
    have autogenerated names so that they dont belong to the same group and more
    than one are selectable.
    How can i group the generated Radio buttons so tht only a single one may be
    selected at a time.

    I'd prefer using the datagrid rather than the radiobuttonlist control if
    this issue can be resolved.

    Regards,
    Nabeel
     
    Sheikh Nabeel Moeen, Sep 15, 2004
    #1
    1. Advertising

  2. There is a third party tool available from MetaBuilders.com. There you can
    get the source code as well.

    "Sheikh Nabeel Moeen" <> wrote in message
    news:...
    > Hello,
    > I have a TemplateColumn as the first column in my datagrid to display
    > radiobuttons for selection of rows.
    > The problem is, when the table (dataGrid) is generated all the

    Radiobuttons
    > have autogenerated names so that they dont belong to the same group and

    more
    > than one are selectable.
    > How can i group the generated Radio buttons so tht only a single one may

    be
    > selected at a time.
    >
    > I'd prefer using the datagrid rather than the radiobuttonlist control if
    > this issue can be resolved.
    >
    > Regards,
    > Nabeel
    >
    >
     
    Sriram Mallajyosula, Sep 22, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. RB

    RadioButtons & DataGrid

    RB, Aug 11, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    426
  2. discomiller
    Replies:
    1
    Views:
    514
    Paul R
    Feb 1, 2005
  3. daokfella
    Replies:
    1
    Views:
    400
    daokfella
    Nov 20, 2007
  4. rwornor
    Replies:
    0
    Views:
    2,365
    rwornor
    Mar 1, 2008
  5. John A Grandy

    DataGrid with TemplateColumn of CheckBoxes or RadioButtons

    John A Grandy, Sep 17, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    138
    John A Grandy
    Sep 17, 2004
Loading...

Share This Page