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.

GGC: indicate number too long for cell width

Thread ID:

Created:

Updated:

Platform:

Replies:

69772 Nov 12,2007 05:41 AM Nov 12,2007 01:18 PM Windows Forms 1
loading
Tags: Grouping
Patrick Cheng
Asked On November 12, 2007 05:41 AM

Hi,

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?

Thanks


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

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,
Haneef


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.

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.

;