Ticket CQ63561
Visible to All Users

Memoedit Scrollbar

created 18 years ago

I have an xtragrid with MemoEdit column.
The memoedit has a vertical scrollbar which is displayed only if the row is focused.
Is there a way to show the scrollbar when the row is not focused as well, so the user will know that the text is longer than what he see?

Show previous comments (2)
DevExpress Support Team 18 years ago

    Hello Kasambian,
    Indeed, the AdvBandedGridView doesn't support automatic calculation of row heights because its layout is rather complex. This can result in grid's low performance. However, it's possible to implement the similar algorithm using the CalcRowHeight event. I've attached a corresponding sample. Please take into account that it might not work for a more complex layout.
    Thank you,
    Paul

      Thank you for the example.
      My case is a bit different.
      The memoedit doesn't stand alone in the band.
      I have a simple column and a memoedit in the same band. The memo edit is bellow the simple column.
      The problem is that that changing the row height expands both columns, as a result, the data in the memoedit is hidden.
      I need to expand the memoedit column only.
      Attached is a solution demonstrating the problem.
      Waiting for your respone
      Kasambian :)

      DevExpress Support Team 18 years ago

        Hello Kasambian,
        Thank you for the clarification. The lines in the AdvBandedGridView can be only of the same height. But, based on your task description, I can offer you an alternative solution that appears to be easer: to use the Preview Featurte to represent full text. Additionally, you can use the MemoExEdit editor instead of MemoEdit to edit the text in-place.
        Thank you,
        Paul

        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.