Accessing Radgrid from user control

2 posts, 0 answers
  1. shravan
    shravan avatar
    1 posts
    Member since:
    Feb 2014

    Posted 17 Feb 2014 Link to this post


    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 17 Feb 2014 in reply to shravan Link to this post

    Hi Shravan,

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


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

    Let me know if you have any concern.
Back to Top