Hello Simon,
Please have in mind that the
GridViewCheckBoxColumn does not use a
CheckBox but a
GridViewCheckBox element as a default editor. With this in mind, in order to achieve the desired behavior, you need to edit the ControlTemplate of the GridViewCheckBox, inspect the whole structure and set some of the elements` backgrounds to transparent. I have created a sample project that implements the desired behavior.
You can also use a
GridViewDataColumn and explicitly set its
CellTemplate to contain a standard
CheckBox. Eventually, you can change its control template(as in the GridViewCheckBoxColumn) or directly set the background color:
However, this will not change all components(within the CheckBox template) backgrounds so modifying the whole template is the best approach. I have created a sample project for your reference with these two approaches. Please review it and consider which one suits your scenario the best.
Please update me whether the information was useful. Of course, if you have any further questions or concerns, do not hesitate to contact us.
Regards,
Stefan Nenchev
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the
Telerik API Analyzer and share your thoughts.