prasanna shah

prasanna shah

  • NA
  • 8
  • 12.6k

filtering gridview with two textboxes in c#

Jul 28 2015 10:18 PM
dear friend,
 
i have two textboxes for id and name and below the textboxes i have a gridview. So i want to filter the gridview by entering  id or name or both. But if i enter id then name, the data should not be appeared in gridview if both id and name do not match. It should only show the data if both id and name matches. I did it on text change event.
 
for example, sunil chaudhari has id 1. If i put 1 in id tetxtbox it shows the data, but if i put ramesh in name textbox then the id and name does not match and the data should not be shown on the gridview.
 
please any could help me. I would be very thankful.
 
thank you
prasanna 

Answers (6)