HI Arya
if you try to find the
control
in an
empty object
(
new instance) then you will get
null
only.
myusercontrol1 obj = new myusercontrol1()
instead, use the user
control Name (which is defined in the
aspx file )
eg: if the control name is
userControl1
then the code wil be like
Gridview grvuserdetails=(Gdidview)useControl1.findcontrol("GridView1")