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. Image for the cookie policy date
close icon

Align checkbox cell (Gridcontrol)

Hellow,

I want to align a checkbox, of a checkbox celltype, to the center of the cell, is possible???

Thanks,
Surti

1 Reply

HA haneefm Syncfusion Team June 12, 2007 03:50 PM UTC

Hi Surti,

Try setting the GridHorizontalAlignment and GridVerticalAlignment property on the style. In a GridControl, you can do it on the cell. Here is the code for a gridcontrol.

this.gridControl1[2,2].CellType = "CheckBox";
this.gridControl1[2,2].HorizontalAlignment = GridHorizontalAlignment.Center;
this.gridControl1[2,2].VerticalAlignment = GridVerticalAlignment.Center;

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon