i have a combobox with a list of SQLusers, which have permissions granted from beforehand.
a table PERMISSION_DETAIL with columns username, permission_name consists the details of permissions granted or denied
now when a user selects a SQLuser from combobox then the permissions are shown as a checkbox, like if permission is already granted, then the checkbox appears and its tick is checked, else UNCHECKED.
for this i use:
if(permission is previously granted)
checkbox1.checked = true; // here the Checkbox_CheckChanged event is called, but i dont want to call it.
checkbox1.enabled = false;
now, besides the checkbox, there is a button, on clicking it, the checkbox gets enabled, that is, to modify the permission, the user will click the button.
now the user will tick or untick the checkbox to grant or deny permission and the checkbox change event
will be called, this would be fine.
i want that as the checkbox appears, its tick is automatically checked, but this calls the
checkbox_Checkchanged event, but i dont want to call that event.