Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Kindly provide me with the codes for a search feature within a gridview.

Say a gridview which has 5 fields i.e


the fields are 1. staff_no
2. first_name
3. last_name
4. social security no
5. home town


The gridview should do an incremental search by any of the above fields while taking out the unwanted record as you keep entering in the search text box.

Thereafter the user will select the requisite record from the gridview which will in tend fill the text boxes in the form.

Thanks
Posted

1 solution

its easy sir,

Q1 taking out the unwanted record as you keep entering in the search text box

Ans 1 to get the required records you have to just use Like keyword of your database to get the desired result.

Q2 select the requisite record from the gridview which will in tend fill the text boxes in the form.

Ans 2 In datagridview check for the related if of the transaction and fill your data accordingly.
 
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