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

Display Value

Thread ID:





47296 Aug 2,2006 05:14 AM UTC Aug 2,2006 08:28 AM UTC WinForms 2
Tags: Grouping
Helmut Basler
Asked On August 2, 2006 05:14 AM UTC


I''m using the GGC to dispaly numbers for example "145". If the column width is big enough the "145" is shown correctly, is the width to small only "45" is displayed. To avoid this, I want to show "##" for each number which will not correct displayed. Any Hints?


Administrator [Syncfusion]
Replied On August 2, 2006 07:31 AM UTC

Hi Helmut,

Please try the code below in the TableControlDrawCellDisplayText event of the gridGroupingControl. This will help you.

if(e.TableControl.Table.CurrentElement is GridRecord)
float width = e.Inner.Graphics.MeasureString(e.Inner.DisplayText, e.Inner.Style.GdipFont).Width;
if(width > e.Inner.TextRectangle.Width)
e.Inner.DisplayText = "##";

Let me know if you need any further assistance.

Helmut Basler
Replied On August 2, 2006 08:28 AM UTC

Hi Rajagopal,

it works.



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

or the page will be automatically redirected to 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