I do this now, but I can't do it in a thread since it is part of the Form and not thread safe.
How can I search a DataGridView's data from within a thread?
Example:
C# |
The above is not thread safe, of course.
I don't want to pass the entire DataGridView object to a thread as a parameter because it can be rather large and our clerks enter data pretty fast!


Amit ChoudharyRank #145 · 15.8K reputationPosted Apr 29, 2010, 9:37 PM EDT
if you are working on asp.net web application then you can achieve it using javascript and it'll be more efficient and performance promised rather then using Threads.
Please mark "Do you like this post" if it helps you.
Joe Pool53 reputationPosted Apr 30, 2010, 4:58 AM EDT
I neglected to mention: This is a Windows Application, so javascript not an option.
Amit ChoudharyRank #145 · 15.8K reputationPosted Apr 30, 2010, 11:43 AM EDT
you should check out the below articles:
1. Auto Completion using AutoCompleteStringCollection
2. Auto Suggestion TextBox
Please mark "Do you like this post" if it helps you friend
Joe Pool53 reputationPosted Apr 30, 2010, 12:05 PM EDT
I found a solution that works for me by using the Binding Source's Find method in this article: BindingSource.Find by partial string? Hopefully others find this helpful as well.
Thanks for your help!
~Joe