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.
Up arrow icon