[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.
Re: MSHFlexGrid Detecting Col 0
Use the MouseCol property.
VB Code:
Private Sub MSHFlexGrid1_Click()
If Me.MSHFlexGrid1.MouseCol = 0 Then
'do something
End If
End Sub
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:
Private Sub MSHFlexGrid1_Click()
If Me.MSHFlexGrid1.MouseCol = 0 Then
'do something
End If
End Sub