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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Truncating Cell Values

Thread ID:





25387 Feb 25,2005 03:48 AM UTC Feb 25,2005 09:15 AM UTC WinForms 1
Tags: GridControl
Sue Harris
Asked On February 25, 2005 03:48 AM UTC

Hi I''ve noticed that cell values appear to be truncated about a letter too soon - so that even when the cell is wide enough to display the entire cell value, often the last letter is truncated. Is there any cell padding property etc which might be causing this? Thanks, Sue

Administrator [Syncfusion]
Replied On February 25, 2005 09:15 AM UTC

There are two properties of the cell style that might affect the area for visible text. They are style.TextMargins and style.BorderMargins. SO, these setting may ''restrict'' the area available for text. But the behavior you are seeing may also have to do with GDI+ and some of its features like antialiasing. If this is the case you can use the DrawCellDisplayText event and tell the grid to draw the text using GDI instead. private void gridDataBoundGrid1_DrawCellDisplayText(object sender, Syncfusion.Windows.Forms.Grid.GridDrawCellDisplayTextEventArgs e) { e.Cancel = GridGdiPaint.Instance.DrawText(e.Graphics, e.DisplayText, e.TextRectangle, e.Style); }


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon