This is a migrated thread and some comments may be shown as answers.

Accessing Radgrid from user control

1 Answer 82 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
shravan
Top achievements
Rank 1
shravan asked on 17 Feb 2014, 04:42 PM
Hi,

I am having a rad grid in my parent page. I am trying to access that from the usercontrol which is inside that page. But it is always giving nothing. Please help me out.
The code i am using inside my usercontrol is

Dim radGrid as RadGrid=CType(Page.findControl("radGrid_ID"),RadGrid)

Please reply soon

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Feb 2014, 02:55 AM
Hi Shravan,

Please try the following code snippet to access the RadGrid in UserControl Page.

VB:

Dim grid As RadGrid = DirectCast(Page.FindControl("radGrid_ID"), RadGrid)

Let me know if you have any concern.
Thanks,
Shinu.
Tags
Ajax
Asked by
shravan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or