Hi everyone,
I’m working on an ASP.NET Web Forms project and I have a GridView that displays data from my SQL Server database. One of the columns in my database is a bit field called IsActive, and I want to display it as a checkbox in the GridView. I also want users to be able to check or uncheck the box and save the changes back to the database.
So far, I’ve tried using a TemplateField with a CheckBox, but I’m not sure how to properly bind it to the IsActive field and handle updates. Can anyone show a simple example of how to do this, including the code for updating the database when the checkbox state changes?
Thanks in advance!
Last edited by golf hit