Click here to Skip to main content
15,901,122 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i get RadioButton Checked property is True in a Nested GridView in ASP.Net.

(Presently, After selecting RadioButton, i get Checked property value as FALSE).

I want to get Selected RadioButtons TRUE value.
Posted
Updated 7-Jan-12 0:15am
v2

1 solution

hi Friend,

in nested Gridview you have to you use FindControl Method for find the control of any Gridview For Example: Suppose we have GridvView1 Contain nested GridView2 and GridView2 Contain RadioButton Control then



Dim grd As GridView = CType(Gridview1.Rows(0).FindControl("GridViewname"), GridView)


        For Each dr As DataGridItem In grd.Rows
            Dim rd As RadioButton = CType(dr.FindControl("Radiobuttonname"), RadioButton)

            ''rd.Checked use this this method 


        Next


Hope this will help :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900