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

How can i turn on ellipsis text at cell header

Thread ID:





62083 Jun 7,2007 12:28 PM UTC Jun 7,2007 05:55 PM UTC WinForms 1
Tags: GridControl
Asked On June 7, 2007 12:28 PM UTC


How can i turn on ellipsis text at cell header as so whenever width of column is small enough to display text, the text would turn to ellipsis (...)

Ubaid Tariq

Rajagopal [Syncfusion]
Replied On June 7, 2007 05:55 PM UTC

Hi Ubaid,

Please try the code below in the PrepareViewStyleInfo event of the grid. This will help you show ellipsis at the headers when the column width is not enough to display header text.

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



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