I think the problem is not around the checkboxes. The problem is if you use in the database table for ID a number column your where condition in your SQL script won't work properly with apostrophe.
You have to find your ID without apostrophe:
string query = "UPDATE Role1 SET [Add] = '" + status + "' WHERE ID = " + strID + " AND Pages = '" + Pages + "'";
By the way SQL script concatenating let SQL injection attack in your code, so you have to use SqlCommand and SqlParameters to defend your code from injection. You can read further about SQL commands and parameters from
here[
^].