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. Image for the cookie policy date
close icon

VerticalAlignment on edit

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.

1 Reply

AS Athiram S Syncfusion Team January 30, 2013 06:27 AM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon