473,385 Members | 1,282 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,385 software developers and data experts.

Using Filter and Find method of bindingsource

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 wants to view records of purchase made from a particular supplier for a particular date. So I am filtering purchase table on two fields i.e. date of purchase and supplier name but it is not working. It is giving me an error message "Syntax error: Missing operand before '&' operator. I am using following line of code in my project.

purchaseBindingSource.Filter = "date = '" + Convert.ToDateTime(dtPurchase.Text) + "' && supplier = '" + cmbSupplierName.Text + "'";

similarly how to use find method of bindingsource for more than one column.

regards,

guru shetty
Jun 11 '07 #1
0 1057

Sign in to post your reply or Sign up for a free account.

Similar topics

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...
1
by: mafandon | last post by:
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...
5
by: njb35 | last post by:
Hi all I'm beginning my foray from VBA into VB 2005 Express, and enjoying some of the efficiencies it provides! I'm stuck with some dataset handling however that I _think_ can be automated but...
2
by: Steve Richter | last post by:
what is the best way to use DataGridView to view data from large database tables? Where the sql select statement might return millions of rows? string connectionString =...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.