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
Hi
plz try this code as i have tried and found the solution
foreach (Control currentControl in e.SummaryDialog.Controls[0].Controls[0].Controls[1].Controls) { if (currentControl.Text.Equals("Count")) { currentControl.Enabled = false; currentControl.Visible = false; } }