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.

When the text's vertical alignment is in middle, the text moves to top in edit mode. How to resolve this?

Description

The text position getting changed in edit mode is the default behavior of Grid Control. The difference in text position is viewable when the vertical alignment is set to middle and the row height is increased.

Solution

This is because, even the row height has been changed, and the text position remains the same. To fix this, you have to set the position of cell text depending on the row height in QueryCellInfo event.

C#

 

VB

 

Screenshot:

 

Sample:

C#: TextPositioninEditmode

VB: TextPositioninEditmode

 

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
5196 07/09/2015 07/09/2015 Windows Forms GridControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.