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.
Syncfusion Feedback

Display Value

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hallo,

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?

regards
Helmut

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.
Regards,
Rajagopal

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

Hi Rajagopal,

it works.

thanks
Helmut

CONFIRMATION

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.

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

;