Bug Report B159158
Visible to All Users

VGridControl - The height of the several multiline rows is not calculated correctly

created 14 years ago

I have 2 rows.
the text in the first row correctly wraps in the memo edit according to the row width.
however, the text in the second row does not word wrap.
Not sure if the setting RecordWidth manually will affect this.
i'm on version 9.1

Comments (3)
Anatol (DevExpress) 14 years ago

    Hello Anthony,
    I have not managed to reproduce this problem. Please see my test project in the attachment. Does the problem occur in it on your machine? If so, please try to update our components. Otherwise, please provide a sample project, reproducing it.
    Thanks,
    Anatol

    ?
    Unknown 14 years ago

      I believe the problem arises when I do some custom painting to draw an icon in the cell. see attached sample.

      Anatol (DevExpress) 14 years ago

        Hello Anthony,
        Thank you for your sample. The problem occurs, because the MemoEdit is not used in the CustomDrawRowValueCell event handler, were you are painting cells in a custom manner. Since the e.Appearance.TextOptions.WordWrap property is set to Default, the e.Appearance.DrawString method draws strings without word wrapping. To solve the problem, set the TextOptions.WordWrap property of the e.Appearance, EditorRow.Appearance or VGridControl.Appearance.RecordValue AppearanceObject to Wrap.
        Thanks,
        Anatol

        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.