Ticket T560259
Visible to All Users

Cell Word wrap not working

created 8 years ago

HI

We have set appearanceCell.TextOptions.WordWrap = WordWrap.Wrap;
on the column, but its doesn't wrap, instead shows ellipsis

Can you please suggest how to fix it?

Thanks

Answers approved by DevExpress Support

created 8 years ago

Hello Mohit,

If you wish to show the cell data in several lines, you need to assign the RepositoryItemMemoEdit object to the required column via the GridColumn.ColumnEdit property and enable the GridView.OptionsBehavior.RowAutoHeight option.Do not hesitate to contact us if you have any questions or concerns.

    Show previous comments (3)
    Nadezhda (DevExpress Support) 8 years ago

      Hello,

      You can assign RepositoryItemMemoEdit to the GridColumn.ColumnEdit property regardless of whether a column is editable or not. So, I suggest you assign this repository item for all required columns.
      Please test this approach and let me know if it meets your requirements.

        Done, still doesn't work.

        I have set the below as well for the couple of columns

        OptionsView.RowAutoHeight = true;
        Columns["Message"].AppearanceCell.TextOptions.Trimming = Trimming.None;
        Columns["Timestamp"].AppearanceCell.TextOptions.Trimming = Trimming.None;
        Columns["Message"].AppearanceCell.TextOptions.WordWrap = WordWrap.Wrap;
        Columns["Timestamp"].AppearanceCell.TextOptions.WordWrap = WordWrap.Wrap;
        Can you please send a sample project with the implementation?

        DevExpress Support Team 8 years ago

          Hi Mohit,

          Yes of course. I've created a project illustrating the approach described by Nadezhda.

          Review it and let us know your results.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.