Ticket Q424676
Visible to All Users

Preview doesnt respect MaxLineCount when property is RichEdit

created 13 years ago
Comments (2)
DevExpress Support Team 13 years ago

    I am afraid this information is not enough to answer you precisely why this happens. Would you please provide us with a sample project to demonstrate the issue and more detailed information about the functionality you are trying to implement? We will examine it and do our best to find a solution.

    VU VU
    Vladimir Ulchenko 12 years ago

      it also doesn't work as it should if TcxBlobEditProperties (bekMemo/bpsText/ssVertical) repository item linked to the column bound to memo field and only shows single (first) line of multi-line (separated with #13#10 pairs) memo field content. as soon as I clean RepositoryItem property for that TcxGridDBColumn it correctly shows default (3) lines

      Answers approved by DevExpress Support

      created 12 years ago (modified 12 years ago)

      Hello,
      I have reproduced the described behavior in both the RichEdit and BlobEdit. This behavior is by design - a cxGrid cannot correctly count the number of lines in such editors for the preview row. A RichEdit can contain a picture, and it is not clear how to display it partially. I can suggest two possible workarounds for you:

      1. Use Memo Properties for this column instead;
      2. Create an additional unbound column with truncated strings and use this column as a preview (How to set up an unbound item in a data-aware View).
        Show previous comments (8)

          I don't have a Delphi and work with c++ (XE2/XE5) - can You please attach c++ project ?

            I've just translated this code into c++
            Works :)))))
            THANK YOU

            DevExpress Support Team 11 years ago

              You are always welcome.

              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.