Results 1 to 4 of 4

Thread: how could I group radio buttons in datagrid?

  1. #1
    Junior Member
    Join Date
    Feb 2008
    Answers
    2

    Question how could I group radio buttons in datagrid?

    radio buttons cannot be grouped in datagrid


  2. #2
    Contributing Member
    Join Date
    Jun 2007
    Answers
    65

    Re: how could I group radio buttons in datagrid?

    Hi Prash,

    The basic funda to group radio buttons is to ensure that all should have same GroupName property.

    For this u can choose following options
    1. Find RadioButton controls in Grid by using FindControl function and set GroupName="MyGroup" for each of them in PreRender event

    2. Create an ItemTemplate, add RadioButton into it and set its GroupName ot MyGroup


    ---V V---
    Vikas Vaidya

    Please mark this post as Thank if u find the answer useful


  3. #3
    Expert Member
    Join Date
    Dec 2007
    Answers
    138

    Re: how could I group radio buttons in datagrid?

    Thanks, very good answer.
    Also you can paste radio buttons and make it in list and set list property to only one select


  4. #4
    Junior Member
    Join Date
    Jul 2008
    Answers
    3

    Re: how could I group radio buttons in datagrid?

    Radio buttons should have same GroupName property. Create an ItemTemplate, add RadioButton into it and set its GroupName as you like. There is a control for finding the RadioButton controls in Grid by using FindControl function and set GroupName="gname"


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact