Make Checkbox bigger in DataGridViewCheckBoxColumn

Answered
0
0

Hey Guys!

I wonder if it’s possible to make the Checkbox bigger for a DataGridViewCheckBoxColumn? It looks too small when user has to click on it. I tried to modify the theme via code with no success. Please, advise…thanks.

Attachment
  • You must to post comments
Best Answer
0
0

Use this in /Themes/App.mixin.theme

{
 "appearances": {
 "table-checkbox-cell": {
 "inherit": "table-checkbox-cell",
 "components": {
 "checkbox": {
 "states": {
 "default": {
 "styles": {
 "fillColor": "red",
 "backgroundSize": "30px",
 "backgroundImage": "checkbox",
 "backgroundPosition": [ "center", "center" ]
 },
 "properties": {
 "width": 30,
 "height": 30
 }
 },
 "checked": {
 "styles": {
 "backgroundImage": "checkbox-checked"
 }
 },
 "undetermined": {
 "styles": {
 "backgroundImage": "checkbox-undefined"
 }
 }
 }
 }
 }
 }
 }
}

Or

Application.Theme.Appearances[“table-checkbox-cell”].components.checkbox.states.@default.styles.backgroundSize = “30px”;

 

Attachment
  • You must to post comments
0
0

Thanks for replying. It did not work for me. Also, I tried but still not working:

Application.Theme.Appearances["table - checkbox - cell"].components.checkbox.states["default"].styles.backgroundSize = "40px";

Attachment
  • Carlos Lino
    Nevermind. It’s working now. The problem was the extra spaces between “table – checkbox – cell”. It must be “table-checkbox-cell” so then it works. For some reason when I copied and pasted, those spaces were added. Thanks!
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.