Related Links

Filter GridView With TextBox

Hello i have a praticular problem actually the problem is that i have a grid having some data in it and i want my grid to be filter with text box i mean tto say when i enter some text in textbox so grid should only show the relevant data.

Re: Filter GridView With TextBox

Do you have a TextBox outside the GridView, and when you enter data into it and press a button, the GirdView should be filter on that data?

If so, make sure your select command can taka a parameter with the value you want to filter on. Add a ControlParameter to the SelectParameters colelction of the DataSource control (if you use a DataSource control).

Here is an example that uses the Northwind database, maybe this will help you: