LINQ DataSource, Where Parameters, ASP.NET

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

LINQ DataSource, Where Parameters, ASP.NET 0
Linq May CTP 2006 1
LINQ and Gridview 2
Linq 5
linq and asp.net 6
linq to object query 2
Linq\MSAccess 0
Data binding with linq query 0

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top