Hi Guys
I have a textbox and button which performs a simple text search on my database. My datagrid also has simple edit, update and cancel controls where I can update my database from my datagrid with values I insert into a corresponding textbox. However when I try to edit the record that is returned from my text search it is not the record returned that gets updated. Its the first record in the database. This is also true if the text search returns, for example three records. If I then go to edit the third record returned. It will update the third record in the database rather then the record that was actually found which may actually have been, for example the tenth record in the database.
How do I set the datagrid to edit the actual record returned from my text search?
Thank you
I have a textbox and button which performs a simple text search on my database. My datagrid also has simple edit, update and cancel controls where I can update my database from my datagrid with values I insert into a corresponding textbox. However when I try to edit the record that is returned from my text search it is not the record returned that gets updated. Its the first record in the database. This is also true if the text search returns, for example three records. If I then go to edit the third record returned. It will update the third record in the database rather then the record that was actually found which may actually have been, for example the tenth record in the database.
How do I set the datagrid to edit the actual record returned from my text search?
Thank you