Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
365
how to turn off ellipses in Infragistics.Win.UltraWinGrid.UltraGridCell?
posted

Is there any way to make Infragistics.Win.UltraWinGrid.UltraGrid behave more like Excel  when it clips cell text because the text is too long for the cell?  The UltraGrid chops the text and appends ellipses.  Excel just chops the text.

Consider the string "123456789".    If the UltraGridCell only has enough real estate to show 4 characters, it will show "1234..." (or possibly  "123..." since the ellipse takes up some space).  I need it to show "1234" (no ellipse).

It looks like on the web grid there might be a setting to control it: this.UltraWebGrid1.DisplayLayout.RowStyleDefault.TextOverflow = TextOverflow.Ellipsis;

Is there a similar setting for UltraWinGrid.UltraGrid?

  • 27093
    posted

    Hi,

     

    Yes there is such a property: TextTrimming you can find it in CellAppearance.

    And in your particular case you can set it like so:

    ultraGrid1.DisplayLayouts.Bands[0].Column[0].CellAppearance.TextTrimming = TextTrimming.None;

     

    Hope this helps.

    Regards Petar.