Click here to Skip to main content
15,889,411 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
hi all,
please help me in the foll:
i have created a datagrid to display data from a table in SQL
using ASP.NET and stored procedures. the data is getting
displayed properly. now, i want to add search functionality.
on clicking the search button, the required data should get
displayed in a single row of the datagrid. i want to use
textboxes to insert search data.
Posted

1 solution

Ok. What you need is to place the search textboxes. Based on the values put in these textboxes, you would form your query and get data accordingly.

OR

you can also have something like, filter data in grid based on text in textbox. For that you need to use dataview as datasource of grid and use RowFilter to get the needed data.

Try!
 
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