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

Vertical alignment of cells on edit mode

Thread ID:

Created:

Updated:

Platform:

Replies:

24905 Feb 14,2005 10:09 AM UTC Feb 14,2005 04:14 PM UTC WinForms 2
loading
Tags: GridControl
Alex Drizen
Asked On February 14, 2005 10:09 AM UTC

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 10:27 AM UTC

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 04:14 PM UTC

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.

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

;