Ticket Q218310
Visible to All Users

Preview on only Focused/Selected Row

created 16 years ago

Is there any way to show the PREVIEW line only on the record that is currently focused/selected?

Answers

created 16 years ago

Hello Alan.
Thank you for your message.
By default, this functionality is not supported by the ExpressQuantumGrid.
However, you can achieve the required functionality by using the OnGetCellHeight event handler and OnFocusedRecordChanged event handler.
In the first event you should check if the record is focused and the AItem is a Preview column. If this record is not focused, you should set the AHeight parameter's value to 0.
In the second event, you should force the preview cells to recalculate. It can be done by disabling and then enabling the visibility of the Preview.
Attached is an example that shows how to perform this task. Does this solution meet your requirements?
Best regards,
Ingvar.

    Comments (2)

      Thank you. Your solution works.

      DevExpress Support Team 16 years ago

        Hello Alan.
        Thank you for informing us that the problem is resolved now. I'm happy to hear that my assistance was helpful.
        Please feel free to contact us if you have any questions about our controls. We'll do our best to provide you with a prompt solution.
        Best regards,
        Ingvar.

        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.