Hello, I'm having trouble when trying to change the checkbox color in the GridSwitchColumn. Could you please help me with this issue? Thank you.
Hi Josh,
Regarding query “How to change checkbox color in GridSwitchColumn”
You can achieve your requirement by overriding the GetSwitchOnColor and GetSwitchOffColor methods in a custom style class deriving from DataGridStyle and assigning it to the SfDataGrid.GridStyle property. Please refer the link below for our Knowledge Base article on changing the checkbox colour of a GridSwitchColumn.
Please let us know if you need any further assistance.
Regards,
Suja
Thanks for your help Suja. It works. I just found out another issue: if I manually check the checkbox, the tick color will be white. If I programmatically check the box, the tick color will be black. Do you have any solution for this? Thank you.
Thanks for your help. It works.
Hi Josh,
We are glad to know that the reported problem has been resolved at your end. Please let us know if you need any further assistance. We are happy to help you.
Regards,
Suja