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.

How to avoid text cut off when "Border Margins" are used?

Problem:

When the border margin size is more than the text size, the text is cut off on display.

The following image shows the text cut off.

 

C:\Users\venkatesh s\Desktop\errorproblem.png

Figure 1: Text cut off

 

Solution:

To avoid this problem of the text being cut off, use the Font.Unit property in the QueryCellStyleInfo event, and set the value to GraphicsUnit.World.

 

C#

 

VB

 

After applying the properties, the Grid is displayed as follows.

 

C:\Users\venkatesh s\Desktop\errorproblem1.png

Figure 2: Grid with applied properties

Article ID: Published Date: Last Revised Date: Platform: Control:
5402 09/02/2015 09/02/2015 Windows Forms GridControl
Tags:
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.