Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I need some help, and I know I ask to much, but I have a datagridview populated with binding source, a textbox and the button. let's say I have 100 rows in datagridview with 5 column, and one column is for filtering threw textbox that I mentioned. so when I type in text in that textbox, then click on button it filteres rows . but what I want is to type in that textbox any word or words from the text that exists in the cells of that column, and it filteres again. something like any search box in web broser. I am totaly stuck, dont know how to even start the code, I tried some things but nothing

thanks
Posted

1 solution

As I realized from your question, you already have a filtering algorithm that runs on a Button's Click event. So, you can add an event-handler to the TextBox's TextChanged event with the same algorithm.
 
Share this answer
 
Comments
RaviRanjanKr 23-Oct-11 16:59pm    
My 5+
Shmuel Zang 23-Oct-11 18:28pm    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900