I have an aggravating problem.....
My MSFlexGrid is working fine but when it loads the very first cell is highlighted. I don't understand how or why it does this because I have
MSFlexGrid1.SelectionMode = flexSelectionRow
And when you mouse click on that first row it behaves normally by highlighting the entire row.
I've also added:
.FocusRect = flexFocusNone
.FillStyle = flexFillRepeat
.Clear
all to no avail.....
.RowSel = 0
causes the first cell in the header row AND the first cell in the data row to highlight.
* What is causing this first cell to highlight?
* How can a clear the highlighting on this flexgrid so that nothing is highlighted?
* How do I programmatically highlight a particular row?
Can I give you my idea -
Remove everything and try this. On the Form_Load event add this
' This will free MSFlexGrid1 with any selection mode
Private Sub Form_Load()
MSFlexGrid1.SelectionMode = flexSelectionFree
End Sub
' This will select you whole row when you click on a perticular row on the MSFlexGrid
Private Sub MSFlexGrid1_Click()
With MSFlexGrid1
.RowSel = .Row
.Col = 0
.ColSel = .Cols - 1
End With
End Sub
I wish this helps you!
Thanks