I'm using an MSHFlexGrid, binding it to an ADO recordset, then closing the recordset (so now it's unbound).
I have all the code to load the grid in a subroutine called 'RefreshData'
I call RefreshData inside Form_load, and also when a user clicks a button.
The problem is, after a Form_load, it works fine. After a manual Refresh, something about the grid causes it to start ignoring mouse clicks. For example, say the first row is highlighted. I click on the 2nd row, and put a
Debug.print grd.Row
statement inside every possible event: EnterCell, LeaveCell, RowColChange, and SelChange. In every case, the Row property says "1", even though I just clicked on the 2nd row.
If I close the form, re-open it (avoiding the manual Refresh), it works fine again.
Any ideas?
Dave.