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.
Unfortunately, activation email could not send to your email. Please try again.


Thread ID:





29045 May 16,2005 04:02 AM May 16,2005 05:08 AM Windows Forms 1
Tags: GridControl
Hrvoje Voda
Asked On May 16, 2005 04:02 AM

I defined a checkbox cell. I want to put it in a center of a cell.

Administrator [Syncfusion]
Replied On May 16, 2005 05:08 AM

Try setting the GridHorizontalAlignment property on the style. In a GridControl, you can do it on the cell. In a GridDataBoundGrid, you need to set it on the GridBoundColumn.StyleInfo object fro the column from either the grid.GridBoundColumns collection or from the grid.Binder.InternalColumns collection depending upon whether you have explicitly added GridBoundCOlumns or not. Here is the code for a gridcontrol. this.gridControl1[2,2].CellType = "CheckBox"; this.gridControl1[2,2].HorizontalAlignment = GridHorizontalAlignment.Center;


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.

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.