The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator Syncfusion Team 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);
}