Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. DataGrid Mouse Hover

DataGrid Mouse Hover

Scheduled Pinned Locked Moved Visual Basic
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sumit Domyan
    wrote on last edited by
    #1

    I am using a datgrid in my application. I want to highlight a full row, whenever mouse is moved on the row. Any solution. Thanks Sumit Domyan

    R 1 Reply Last reply
    0
    • S Sumit Domyan

      I am using a datgrid in my application. I want to highlight a full row, whenever mouse is moved on the row. Any solution. Thanks Sumit Domyan

      R Offline
      R Offline
      Robert Rohde
      wrote on last edited by
      #2

      You have to handle the MouseMove event and call the HitTest function of the DataGrid with the current mouse position. It will return you an object where you can access the Row at the specified position. With the Select function of the grid you can highlight this row (dont forget to unhighlight the previous row with Unselect).

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups