Ticket Q136958
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

Switch the mouse pointer that hovers over cxHyperLinkEdit data cells to crHandPoint

Mouse pointer over not editable hyperlink text, not over the whole cell

created 16 years ago

Hi,
I would like to have a column in my not editable grid with hyperlinks. When the mouse is over the hyperlink (only over the hyperlinked text, not over the whole grid cell) it should be crHandPoint.
I already found http://www.devexpress.com/issue=DQ49908
When the user clicks on the hyperlink (only on the hyperlinked text, not the whole cell) some action should be executed depending on the contents of the cell.
I already found http://www.devexpress.com/issue=B94109
No solution I found in the knowledge base solves my problem, as every of them is about whole cells. My hyperlinked data has very various widths, and I would like to execute code and change the mouse pointer only over the hyperlink itself.
Is there a possibility to achieve this?
How can I find out the width of text in a particular cell?

Comments (3)
DevExpress Support Team 16 years ago

    Hello,
    You can use TcxGridTableDataCellViewInfo.TextBounds to find a text position.
    Attached, is a sample project demonstrating how to accomplish this.
    Thanks,
    Vlad

      great, thank you

      DevExpress Support Team 16 years ago

        You are 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.