L
Light
I know that if I want to use a linq query instead of a simple "select"
query that I can override the LINQ data source selecting event. I,
also, know that I can use a Where Parameter and bind on that.
What I'd like to know though and here is the situation: I have 2
gridviews. I want one to be the parent and the other a child. It shows
a one to many relation.
On the ParentGridView Index Changed then I can set the WhereParameter
of the Child linq atasource and databind and that works.
But, what if I wanted to call instead a custom query method or write
LINQ? Is this a bad idea. My goal would be to use LINQ queries so that
I don't have any embedded strings so that I can compile time type
checking or to use it with custom methods.
Also on point #2. Must I override the selected index changed to make
the child grid update? I have to pull the datakey out of the object.
query that I can override the LINQ data source selecting event. I,
also, know that I can use a Where Parameter and bind on that.
What I'd like to know though and here is the situation: I have 2
gridviews. I want one to be the parent and the other a child. It shows
a one to many relation.
On the ParentGridView Index Changed then I can set the WhereParameter
of the Child linq atasource and databind and that works.
But, what if I wanted to call instead a custom query method or write
LINQ? Is this a bad idea. My goal would be to use LINQ queries so that
I don't have any embedded strings so that I can compile time type
checking or to use it with custom methods.
Also on point #2. Must I override the selected index changed to make
the child grid update? I have to pull the datakey out of the object.