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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Align checkbox cell (Gridcontrol)

Thread ID:

Created:

Updated:

Platform:

Replies:

62281 Jun 12,2007 12:05 PM UTC Jun 12,2007 03:50 PM UTC WinForms 1
loading
Tags: GridControl
Surti
Asked On June 12, 2007 12:05 PM UTC

Hellow,

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

Thanks,
Surti

haneefm [Syncfusion]
Replied On 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

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

or the page will be automatically redirected to 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

;