Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET ADO.NET LINQ C#4.0 , +
How to filter gridview with 5 checkboxlists for Product search
 
Checkboxlist1 - ProductList
 
CheckboxList2 - Age
 
CheckboxList3 - Gender
 
CheckboxList4 - Country
 
CheckboxList5 - Brand
 
Based on the items checked, the gridview should update results - product image, title of product, and link to product page. This is similar to product search in Ebay.
 
Any idea? Its very urgent struggling to find solution using ADO.NET entity data model
Linq
Posted 16-Jan-13 6:14am
Comments
Kishor Deshpande at 16-Jan-13 13:27pm
   
Well in this case, you can apply a sort on datasource of your Gridview, suppose I've list to bind with GridView then,
var result = list.OrderByDescending(p => p.ProductList).OrderBy(a => a.Age)....
rose8garden at 17-Jan-13 6:45am
   
In need subquery to result1(which is list of productids).
result1 - productids
result2 - query of result1(productids) where ageid = ....
result3 - query of result2.....
...
Pass the final value to Gridview
 
Here I have no idea how to write subqueries in Linq and bind it to Gridview
Nandakishorerao at 19-Jan-13 5:38am
   
how are you binding the data to gridview?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
rose8garden at 17-Jan-13 6:39am
   
Sorry If I did not explain clearly.
Here checkboxlist's is outside of gridview. selected ids of checkboxlists are inputs to gridview to filter output results.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

hey u got ans of this que?
please post ur ans here me to facing same problem
thank you
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 504
1 Maciej Los 349
2 Kornfeld Eliyahu Peter 325
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,303
1 DamithSL 4,764
2 Maciej Los 4,306
3 Kornfeld Eliyahu Peter 3,914
4 Sergey Alexandrovich Kryukov 3,538


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 3 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100