-
Junior Member
how could I group radio buttons in datagrid?
radio buttons cannot be grouped in datagrid
-
Contributing Member
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
-
Expert Member
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
-
Junior Member
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
-
Forum Rules