473,395 Members | 1,418 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.

BindingSource.Find Question

Hello,

I am using the BindingSource.Find-Methode to find an Item in my
BindingSource. This works fine to find the exact pattern, but now I
search for a fuzzy finding method.

For example:

XXX34234234
DDD4324543
HAM5454545
MUC6456566

I want to do a fuzzy search for "HAM" .

therefore I sort the bindingsource and the I perform the
BindingSource.Find Method.
I also tried it with * or % patterns.

Does anyone know a way to do fuzzy/unexact find/search operations in a
BindingSource

Best regards from Germany

Alexander Loose

Oct 8 '07 #1
1 4156
Unfortunatley, there is nothing like the old 'seek' method. So, depending on
how many records are in your source, either linear search for the first '>='
or code a binary search. Also, I would sugest using the underlying
'DataView' to do the search.
--
Terry
"Alexander Loose" wrote:
Hello,

I am using the BindingSource.Find-Methode to find an Item in my
BindingSource. This works fine to find the exact pattern, but now I
search for a fuzzy finding method.

For example:

XXX34234234
DDD4324543
HAM5454545
MUC6456566

I want to do a fuzzy search for "HAM" .

therefore I sort the bindingsource and the I perform the
BindingSource.Find Method.
I also tried it with * or % patterns.

Does anyone know a way to do fuzzy/unexact find/search operations in a
BindingSource

Best regards from Germany

Alexander Loose

Oct 8 '07 #2

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

Similar topics

0
by: David McCrory | last post by:
Does anyone have a good example of using the Find() or Filter() methods of the BindingSource. I am binding to an array of objects and not having any luck getting these functions to work. ...
1
by: TN | last post by:
I just don't get the BindingSource class when it is bound to a class. Consider this code snip: ..... Private bSource As New BindingSource() Private dgv As New DataGridView() Public Sub New()...
0
by: Geoff | last post by:
Hi folks Calling BindingSource.ResetCurrentItem() is changing the BindingSource.Position in a way I don't understand. If I'm understanding the docs correctly, ResetCurrentItem() should simply...
4
by: shibeta | last post by:
Hello, I have problem with DataGridView and BindingSource. I have created DataSet and added TableData to it with manualy created columns (without DataAdapter - I'm not using MSSQL). On the Form I...
2
by: NicSM | last post by:
Hi Can anyone please help me with this problem? I'm working with a master/detail windows form in c# and I'm trying to locate a record in the detail section with respect to a set of primary...
1
by: Daniel Jeffrey | last post by:
..Net 2.0 VStudio 2005 C# I know this is going to seem like a strange question, as even I am sure I have missed something - but I cant find it. I want a simple event on any of the objects...
2
by: jehugaleahsa | last post by:
Hello: I'm working on improving some of our Windows Forms. I have created two user controls that I want to bind to the same BindingSource. I have an overview control that is used just to...
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...
2
by: TamusJRoyce | last post by:
I am working on a group project where I do not have access to a BindingSource that is being passed through a function. The BindingSource's DataSource is set to a custom IBindingListView Collection....
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: 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
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
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
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...

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.