473,325 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Datasource - Filter

Hello!
If I use a Filter on a Datasource, does he made a new Query with the
constraint of my definend WHERE clause or does it retrieve all Data and
then filter the content? If that isnt the right way, how can i add a
WHERE clause? All docu that I found speak about alle Data from a
Datasource or Table.

Regards
Alex
Jul 18 '08 #1
2 2536
I think it will filter the full data it has. If you want to dynamically
change a database where clause then you need to generate your SQL on the fly.
Be sure however to parameterise the query to stop SQL injection errors.
--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"A. Peters" wrote:
Hello!
If I use a Filter on a Datasource, does he made a new Query with the
constraint of my definend WHERE clause or does it retrieve all Data and
then filter the content? If that isnt the right way, how can i add a
WHERE clause? All docu that I found speak about alle Data from a
Datasource or Table.

Regards
Alex
Jul 19 '08 #2
Ciaran O''Donnell schrieb:
I think it will filter the full data it has. If you want to dynamically
change a database where clause then you need to generate your SQL on the fly.
Be sure however to parameterise the query to stop SQL injection errors.

Thanks!
Jul 19 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: DraguVaso | last post by:
Hi, I have a ComboBox of +- 15.000 items in it, via a DataSource. On Top of the Items-list, I want to add some values, based on a user choise (via a filter on the DataSource). Does anybody know...
3
by: Corobori | last post by:
I am looking for a sample showing the following: I have one form (say frmProducts) where there is a dropdown list containing products. My users want to make this dropdown list more usable by...
3
by: astro | last post by:
I have a datagrid that is two levels down from the dataview (i.e. grandchild). I have spent 3 hours trying to get the syntax of determining it's real datasource (i.e. not it's source based on it's...
1
by: Islamegy® | last post by:
I have 2 Questions.. 1- Is it better to use Dataview To filter and sort Datatables or requery the datasource?? When i was working in windows appl i found sorting and filtering on client old...
3
by: Amil Hanish | last post by:
I have a DataSource that I want to only apply (filter) a subset of the items to a GridView. Can I do this? Amil
2
by: AAJ | last post by:
I know this sounds nuts, but how do I remove the following filter from a Object Datasource that looks at my business layer... ODSDefaultUserProfiles.FilterExpression = "AllowedWebPage = '" +...
1
by: Chris | last post by:
I have a gridview bound to the select method of an object data source. I have a filter button, that when clicked applies a filter typed in a textbox. How do I change the select method of the object...
1
by: Greg Smith | last post by:
I would like to display the filtered record count for a datasource used to populate a gridview. I would like to change it every time the filter is changed. Is there a way to do this? Any...
1
by: webcat | last post by:
Hi All, another day another problem! I have a SQL table shown on a form which i wish to filter by current logged in user - I have a local table storing the currently logged in user and all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.