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

C # Search Table

I am working on a project and hit a road block , I would like for the customer to be able to search the whole data table. So far I can only find a way to search one column.Also is there a way to use wildcards **?

Expand|Select|Wrap|Line Numbers
  1. private void btnFind_Click(object sender, EventArgs e)
  2.         {
  3.             tblEmployeeBindingSource.DataSource =
  4.             from tblEmployee in hollandDataSet.tblEmployee
  5.             where tblEmployee.LastName.StartsWith(txtFind.Text)
  6.             orderby tblEmployee.EmployeeID, tblEmployee.FirstName, tblEmployee.LastName, tblEmployee.Position, tblEmployee.SupervisorID
  7.             select tblEmployee;
  8.             txtFind.Clear();
  9.  
  10.  
  11.  
  12.         }
Thank you
in advance
Nov 16 '11 #1
0 1246

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

Similar topics

4
by: Lapchien | last post by:
I'd like a query that searches through a table (Table1) and looks for a comma in just one particular field (Field1), and removes just that comma if found... Anyone help with this one? Ta Lap
3
by: KRoy | last post by:
How can I seach all of the fields of every table in a databae for a particular value. When it is found, I want to be able to display the table name and the field name, then continue to search.
2
by: Merrall, Graeme | last post by:
I don't think there's an easy way to do this but I thought I better ask just in case. I'm trying to come up with a way to search across a number of databases without resorting to lots of horrible...
8
by: Someone | last post by:
Hi, I wish to use a dictionary.com search box and want the results of a search to open in a new window. Is there a way to do this using their code? The copy and paste code is provided below. ...
5
by: TurboDisk | last post by:
Hello,I am a fresh man to study the DB2.An error occured when I try to Run a Java class. Details of the Error: Code: -------------------- com.ibm.db2.jcc.b.SqlException:DB2 SQL...
0
by: Chris | last post by:
Hi, I have a search function pulling data from a MySQL db which works nicely - other than the fact that I can't get the URL to link correctly when the linked document is located in the home...
1
by: Lance Hoffmeyer | last post by:
Hey all, How do I add another index inside a re.search? I want to add for j in BASE = re.search ... sh.Cells97... for i ....
5
by: Fran Jakers | last post by:
Hello all, I'm new to all this and I could really use some help. I've searched the web but cannot find an answer. I have an HTML form with 3 radio buttons and a search field that calls a...
0
by: ZKumar | last post by:
Hi, We are looking for static sql query for the below requirement we have 15 fields on front end and user can search the table by providing any number of fields out of 15. as we dont know the...
1
by: yanivt | last post by:
working on a seemingly simple problem, but for some reason it is giving me a bit of a hard time. I have a table with the following fields: FileID, FName, FPath, DateCreated, Owner. It is a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.