Azzyloth Pakdemol

Azzyloth Pakdemol

  • NA
  • 14
  • 1.5k

How to edit data in search result in c#

Oct 25 2017 1:21 PM
I managed to create a code for my edit button and search button. My edit button is functional. It can edit my data in database, my search code is also functional. My problem is to edit data in search results. Like if i search "naruto", my datagridview will filter all the names that has "naruto" on the database. After i choose and doubleclick on the result, all data will reappear to my textbox. But when i edit that data, it doesn't work. Instead, the first data on my database is the one that is changing not the one that i choose. My edit code is working if i don't search any names and don't choose on the search result. I think the problem is in my Edit codes. Please share your answers. Much better if you have a code examples. THANKS IN ADVANCE!
 
here's my codes. Please HELP...
 

Attachment: Code.rar

Answers (2)