Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
492
Disable Checkbox in Summary Dialog
posted

Hi,
  
   In my summary dialog, For my bool column, i want to enable only count checkbox, others should be disabled. I could able to hide and visible false the checkboxes, but i couldn't able to disable. This is my sample code,

 foreach (Control currentControl in e.SummaryDialog.Controls[0].Controls)
  {
         if (currentControl is CheckBox)
         {
                if (e.Column.DataType.Equals(typeof(System.Boolean)) && (!currentControl.Text.Equals("Count"))
                {
                      currentControl.Enabled = false;
                       //currentControl.Visible  = false
                  }
           }
  }

Please tell me whats wrong with that code and what i have to do, to disable checkboxes.

Regards,
 Micky