How to Selectively Databind Details Views

2 posts, 0 answers
  1. tful
    tful avatar
    6 posts
    Member since:
    Dec 2006

    Posted 15 Jul 2009 Link to this post

    I have a hierarchy grid, with 5 details GridViews. In the top-level item, I know which details views will have data.

    Is there a way to prevent details gridviews from databinding(query to DB) based on values from the top-level item   ?
  2. Prangadj
    Prangadj avatar
    174 posts
    Member since:
    Jan 2008

    Posted 21 Jul 2009 Link to this post

    What I do is use programmatic binding to get the key value from the parent row and know whether to bind the detail table. I used the demo below to learn about it:

    http://demos.telerik.com/aspnet-ajax/grid/examples/programming/detailtabledatabind/defaultcs.aspx

    Prangadj
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top