Click here to Skip to main content
13,143,008 members (54,634 online)
Rate this:
Please Sign up or sign in to vote.
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
Posted 16-Jan-13 5:14am
Kishor Deshpande 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 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 19-Jan-13 5:38am
how are you binding the data to gridview?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

rose8garden 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
Please Sign up or sign in to vote.

Solution 2

Rate this: bad
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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 3 Apr 2013
Copyright © CodeProject, 1999-2017
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