473,406 Members | 2,956 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,406 software developers and data experts.

filter bindingsource

Is it possible to filter a bindingsource twice?

If I want to filter on gender, and filter on zip codes - can you do that
with a bindingsouce.filter method?

It always filters on the last filter request.
Jul 6 '06 #1
1 1991

mafandon wrote:
Is it possible to filter a bindingsource twice?

If I want to filter on gender, and filter on zip codes - can you do that
with a bindingsouce.filter method?

It always filters on the last filter request.


yes you can you just combine filters using AND. Ex :
BindingSource.Filter = "(filterExpr1) AND (filterExpr2) AND ..."

Jul 6 '06 #2

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

Similar topics

0
by: Erez Mor | last post by:
hello all i'm using vb2005. in one of the forms i'm using the filter method of the bindingsource i've used it before, but not on a date field. now, any comparison i try produces an error (things...
3
by: mafandon | last post by:
Is there a way to perform a bindingsource.filter on multiple inputs? For example: I would like the user to be able to put something like <Smith, Jones, Gates> into a textbox and have the...
0
by: meska | last post by:
Hi all, anyone has ideas how to display on ReportViewer items filtered through BindingSource.Filter? Adding a BindingSource through ReportDataSource to LocalReport.DataSources doesn't...
0
by: gurusshetty | last post by:
Hi How to use filter or find on more than one column in C#.Net 2005. e.g. I have a purchase table which contains column like date of purchase, supplier name, raw material and qty of purchase. I...
3
by: Troy Bull | last post by:
Greetings I have a simple application 2 tables related via foreign key. Table 1 Parts, table 2 Clients. ClientID is the primary key in the Client Table, clientID is a foreign key in the Parts...
2
by: Paul | last post by:
Hi all, I have a DataTable and a DataGridView that is using it as a datasource. I'm using the DataTable.Select method and I can find some rows. Is it now possible, somehow to use the result of the...
2
nev
by: nev | last post by:
Does anyone know how to do that? In my real project actually, I filter on two fields like this... bindingsource.filter = "col1='" & var1 & "' AND col2='" & var2 & "'" wherein var1 or var2 may...
0
by: newcooler | last post by:
I have a junction table for instance 1 service can have many contacts - using a composite key junction table. what i want to do is to filter all the contacts that belong to the service using the...
5
by: jehugaleahsa | last post by:
Hello: I am sure this question comes up a lot. I need to disable the controls on my Windows forms so that when the BindingSource is empty some the controls bound to it will be disabled. This...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.