Results 1 to 3 of 3

Thread: [RESOLVED] MSHFlexGrid Detecting Col 0

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    17

    Resolved [RESOLVED] MSHFlexGrid Detecting Col 0

    I have a MSHFlexGrid with FixedCols set to 1. I have it so when the use click on a cell something will happen to that cell. I need to detect when a compete row is select. Like when you click on any row in col 0 the row is highlighted (I want that). How do I detect that
    If I try MSHFlexGrid.Col it will return 1.

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: MSHFlexGrid Detecting Col 0

    Use the MouseCol property.

    VB Code:
    1. Private Sub MSHFlexGrid1_Click()
    2.     If Me.MSHFlexGrid1.MouseCol = 0 Then
    3.        'do something
    4.     End If
    5. End Sub

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    17

    Re: MSHFlexGrid Detecting Col 0

    I am not sure if I want to admit this but I was playing with the mouse propertys but I screwed up and was using mouserow.

    Thanks for the quick answer.

    Quote Originally Posted by brucevde
    Use the MouseCol property.

    VB Code:
    1. Private Sub MSHFlexGrid1_Click()
    2.     If Me.MSHFlexGrid1.MouseCol = 0 Then
    3.        'do something
    4.     End If
    5. End Sub

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