My grid has a checkbox column "MyColumn" that has EnableHeaderCheckBox enabled. That column is disabled in the following manner using the CellFormatting event, code follows(did it this way due to need to show a tool tip). When I click on the header check box, every check box, including the disabled ones, are checked. I don't want those that are disabled to be checked. I've tried using the event HeaderCellToggleStateChanged to modify the toggle value of the checkbox, it's not taking effect. How can I do this?
private void MyGrid_CellFormatting(object sender, CellFormattingEventArgs e)
e.CellElement.RowElement.ToolTipText = @"";
e.CellElement.Enabled = true;
e.CellElement.Enabled = false;
e.CellElement.RowElement.ToolTipText = @"Disabled condition 1 ";