Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Everybody,

I am working in a simple window form. I have take two controls, one is text box and another is datagridview.

Requirement :

On the event of textchange,datagridview coloumn should compare with textname.

If i type josh then datagridview coloumn sould filter all the name data like josh which are in stored in my particular database table.

Thanks
Posted

The best way to do this is always to query the database, and show the data in your grid, not filtering your grid in code.
 
Share this answer
 
Have you tried anything yet? Most people aren't willing to do the work for you. You need to show some good faith that you've tried it but haven't made it work right.

The previous responder was correct. You should filter the data source that the datagridview is bound to.
 
Share this answer
 

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