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.

VerticalAlignment on edit

Thread ID:

Created:

Updated:

Platform:

Replies:

106769 Jan 24,2013 12:14 PM Jan 30,2013 01:27 AM Windows Forms 1
loading
Tags: GridControl
Gaukhar Massabayeva
Asked On January 24, 2013 12:14 PM

When editing a cell that is normally set to VerticalAlignment = middle; in edit mode it jumps up to be top aligned. I read on forum there is no automatic way of setting this. Does this still hold true? Because setting TextMargins.Top to a value is somewhat troublesome since the height of a cell can always be changed by user.

Athiram S [Syncfusion]
Replied On January 30, 2013 01:27 AM

Hi Gaukar,

Thanks for your interest in Syncfusion Products.

Query:

 

When editing a cell that is normally set to VerticalAlignment = middle; in edit mode it jumps up to be top aligned.

 

 

This is the default behavior of the cells in grid. When you activate the TextBox, it positions the text at the top of the cell.

 

We don’t have any property for keeping the position in the middle position itself. As told in your update, 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.

 

 Please let me know if you have any concerns.

 Regards,

Athiram S


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.

;