Results 1 to 3 of 3

Thread: Use the MouseMove event on a Datagrid to Highlight the record??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Posts
    154

    Use the MouseMove event on a Datagrid to Highlight the record??

    So here's what I need to do...

    when I move the mouse over the records in the datagrid, I want the current record under the mouse location to become highlighted??

    Thanks for the help in Advance!!

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    VB Code:
    1. Private Sub DataGrid1_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGrid1.MouseLeave
    2.         DataGrid1.ReadOnly = False
    3.     End Sub
    4. Private Sub DataGrid1_Move(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGrid1.Move
    5.         DataGrid1.ReadOnly = False
    6.     End Sub

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Posts
    154
    First of all my datargid is set to readonly when the form loads!

    I dont think you know what I meant..

    right now when I click a record in the datagrid, it opens a new form with that record for datamanipulation.(updating,deleting, added...etc..)

    so what I was asking is...is there away so that as I move the mouse of each different record it highlights the record that the mouse is over??

    Thanks Again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width