Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
340
HotTracking Vertically - by column
posted

hi,

In ultragrid when you mouse-over a certain cell the hot-tracking would highlight the whole row.

in my case, i need to know to which column a certain cell belongs.

so is it possible to highlight the whole COLUMN and not the row as we hover over cells?

thanks

Parents
  • 34810
    Verified Answer
    Offline posted

    Hello Ahmad,

    In order to highlight the whole column instead of the row, I would recommend utilizing the MouseMove event on the UltraGrid along with an Appearance for use with the CellAppearance of the hot-tracked column. In the Appearance, you can set the BackColor to the color that you wish to highlight the cells.

    In the MouseMove event, you can use the ElementFromPoint method of the UltraGrid.DisplayLayout.UIElement to get a CellUIElement. From it, you can get the UltraGridCell by using the GetContext method and apply the Appearance to the UltraGridCell.Column.CellAppearance.

    I am attaching a sample project that demonstrates how this can be done. I hope this helps you.

    Please let me know if you have any other questions or concerns on this matter.

    WinGrid HotTracking Column CS.zip

Reply Children
No Data