We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridControl Checkbox size

Thread ID:

Created:

Updated:

Platform:

Replies:

145726 Jul 5,2019 10:02 AM UTC Jul 10,2019 07:30 AM UTC WinForms 3
loading
Tags: GridControl
Dinis Ferreira
Asked On July 5, 2019 10:02 AM UTC

Hello,
I need to increase all checkbox size inside a GridControl cell and found a thread with some help.
After apply the code to one checkbox cell it changes all checkboxs in grid but the code seems "wrong".
Is it possible to apply the change to the GridControl in general?

My code is:
GridCheckBoxCellRenderer renderer = gridControl.GetCellRenderer(row, col) as GridCheckBoxCellRenderer;
renderer.CheckBoxSize = new Size(20, 20);

Thanks

Jagadeesan Pichaimuthu [Syncfusion]
Replied On July 6, 2019 12:33 PM UTC

Hi Dinis, 
 
Thanks for your update. 
 
We have checked your reported query in our end and we used the common renderer for all the cells which has the CheckBox cell type. So when changing the size of check box at CheckBoxCellRenderer, it will be reflect in all cells in GridControl. Please refer the below code snippet, where you can get the GridCheckBoxCellRenderer from the CellRenderers collection in GridControl. 
 
GridCheckBoxCellRenderer renderer = this.gridControl1.CellRenderers["CheckBox"] as GridCheckBoxCellRenderer; 
renderer.CheckBoxSize = new Size(20, 20); 
 
 
Also you can refer the below forum link for your reference. 
 
If we misunderstood your requirement, please provide more information regarding the requirement. This would help us to proceed further. 
 
Regards, 
Jagadeesan

Dinis Ferreira
Replied On July 10, 2019 07:26 AM UTC

Hi,
It works very good.
Thanks

Jagadeesan Pichaimuthu [Syncfusion]
Replied On July 10, 2019 07:30 AM UTC

Hi Dinis, 
 
Thanks for your update. 
 
We are glad to know that the provided solution worked at your end. Please let us know if you have any further queries on this. We are happy to help you. 
 
Regards, 
Jagadeesan 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon