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.

Vertical alignment of cells on edit mode

Thread ID:

Created:

Updated:

Platform:

Replies:

24905 Feb 14,2005 05:09 AM Feb 14,2005 11:14 AM Windows Forms 2
loading
Tags: GridControl
Alex Drizen
Asked On February 14, 2005 05:09 AM

I am able to vertically center cells using : styleInfo.VerticalAlignment = GridVerticalAlignment.Middle; However, as soon as the cell goes into edit mode, vertical alignment reverts to top aligned, which looks a bit stange as the cells are quite tall, so the text jumps up to a different location. Is there a way to enforce vertical cell centering even when in edit mode? Alex.

Administrator [Syncfusion]
Replied On February 14, 2005 05:27 AM

There are no property setting to do this for you automatically. You can try setting the style.TextMargins.Top property for the cell to some appropriate value. This should move the top of the TextBox away from the top border.

Alex Drizen
Replied On February 14, 2005 11:14 AM

Not an ideal workaround - but works fine for my needs. Thanks for the quick response! Alex. >There are no property setting to do this for you automatically. > >You can try setting the style.TextMargins.Top property for the cell to some appropriate value. This should move the top of the TextBox away from the top border.

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.

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.

;