Click here to Skip to main content
15,905,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Below is the link to my form

"http://i54.tinypic.com/nbve4l.jpg"

I want to filter the values in datagridview according to the text change in the above textbox

Please help
Posted
Comments
Fabio V Silva 16-Apr-11 17:23pm    
How are you populating the datagrid?
What do you intend to do with the data?
What have you tried so far?

You can Handle TextChanged event of the textbox, and bind your datagrid as per the text entered in the textbox.
 
Share this answer
 
Comments
Eager2Lern 16-Apr-11 17:35pm    
can you provide me a sample code
At the text changed event and if you are using disconnected architecture then you can apply filter on the bindingSource or create a dataview and apply a row filter else if you are using a connected architecture then formulate your query accordingly or use linq to sql, linq to objects (if you plan to use a repository framework). So there are lot of ways right. Which source code you are asking?. Do you want us to keep on guessing this or that when you haven't provided enough information?. Better thing try yourself and comeback if you have any issues. Google help you much.

Good luck.
 
Share this answer
 
Comments
Eager2Lern 17-Apr-11 4:42am    
Thanks Albin.I tried myself and the issue is sorted out

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