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

GGC: indicate number too long for cell width

Thread ID:





69772 Nov 12,2007 10:41 AM UTC Nov 12,2007 06:18 PM UTC WinForms 1
Tags: Grouping
Patrick Cheng
Asked On November 12, 2007 10:41 AM UTC


I want to indicate that a number is too long for a certain cell width. This is similar to the Excel cells where it displays ### for cells that contains numbers too long to display. How can this be implemented in Syncfusion?


haneefm [Syncfusion]
Replied On November 12, 2007 06:18 PM UTC

Hi Patrick,

You can try setting the Style.Trimming property in the TableControlPrepareViewStyleInfo event of the grid. This will help you show ellipsis at the gridcells when the column width is not enough to display cell text. Below are the codes:

void gridGroupingControl1_TableControlPrepareViewStyleInfo(object sender, GridTableControlPrepareViewStyleInfoEventArgs e)
if (e.Inner.RowIndex > 0 && e.Inner.ColIndex > 0)
e.Inner.Style.WrapText = false;
e.Inner.Style.Trimming = StringTrimming.EllipsisCharacter;

Best regards,


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