Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
Changing size of checkbox for cells with Checkbox column style
posted

I've got a grid which has the font size set fairly large.  The columns with a Checkbox column style, are showing with a fairly small checkbox - the sort of size that would fit nicely for the default font size, but which look completely lost inside the cell.  Is there a way of changing the size of the checkbox used by the grid cell?

 

Thanks,

Sue

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Sue,

    It depends what kind of style you are using for you checkboxes. If your application is using themes, which is the default on operating systems that support themes, then you cannot change the size of the CheckBox, because Windows themes don't allow it.

    If you are not using themes (or you don't mind turning them off), then you have two options.

    1) You can use a CreationFilter to change the size of the CheckBoxIndicatorUIElement in the cell.

    2) You can use use an UltraCheckEditor and use the GlyphInfo property to replace the default checkboxes with images you supply. Then you set the EditorComponent on the grid column to the UltraCheckEditor control.

    If you'd rather go with option 1, so that you don't have to draw the images yourself, let me know and I can help you with the CreationFilter code.

Children