Click here to Skip to main content
15,896,359 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi guys........
am using gridview my question is if i enter some name in search button i will get that specific row only so how to write code for search button

id fname lname loc

1001 mahi xyz xyz
xyx xyx xyx xyx


fname:-------- search(button) if enter name and press search button it will display only that row only this is qstn please can any solve my problem with code


thanks in advance
Posted

1 solution

Your best bet is to search your data source, and bind the grid to the matches, instead of trying to iterate over the grid.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 27-Sep-12 23:47pm    
Exactly, a 5.
--SA

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