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

How to Selectively Databind Details Views

1 Answer 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
tful
Top achievements
Rank 1
tful asked on 16 Jul 2009, 03:01 AM
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   ?

1 Answer, 1 is accepted

Sort by
0
Prangadj
Top achievements
Rank 1
answered on 21 Jul 2009, 02:42 PM
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
Tags
Grid
Asked by
tful
Top achievements
Rank 1
Answers by
Prangadj
Top achievements
Rank 1
Share this question
or