Quantcast
Channel: Gridview Search Tool
Viewing all articles
Browse latest Browse all 7

Re: Gridview Search Tool

$
0
0

There are several ways to do it.  It all depends upon what your ultimate goal would be.  Do you need to find any record where the search value exists in any of the columns or do you need to know the exact column?  You could store the dataset in ViewState or Session state and, when the search button is clicked, the click event could pull the dataset out of ViewState or Session state and query it with Linq. Or you could do a foreach(GridViewRow row in GridViewName.Rows) and then search a specific column or two in each row.  In that case, you would have to search them the columns by indexed column number. 


Viewing all articles
Browse latest Browse all 7

Trending Articles