Relative Content

Tag Archive for c#sql-server

Why is my C# code not updating the database record and row not select properly?

I am working on a C# application on Adding Admin to the database. I can select a data row from a grid, and the details of the selected row are displayed in textboxes for editing. However, when I change the textboxes and click the “Update” button, I receive the error message: “Select a record to update” even though I have already selected a row and the details are displayed correctly in the form. My SQL server works properly.