Home > front end >  Unchecking checkboxes programmatically
Unchecking checkboxes programmatically

Time:08-29

I have a certain requirement that, if the first checkbox in a row of checkboxes is unchecked, then all the other checkboxes must be unchecked. Here is a sample enter image description here

  • secondly, declare a CheckBox array in the class and, in the Load() method, initialize all checkboxes to created CheckBox array: enter image description here

  • finally, in the CheckedChanged() method, write code which will check or uncheck all checkboxes, depending on the first checkbox. enter image description here

    • Related