MSFLEXGRID control setting focus to wrong field
Posted on 2008-11-12
I have an MSFLEXGRID control on a form. I am loading it from a recordset and when I click on a row, I have that row of items (plus quite a few more fields related to that item) load into textboxes on the form. All of this works beautifully. I give the user the ability to update the textboxes and it will refresh the grid... all is good.
My problem is whenever the grid loses focus and then I click on a row in the grid it selects the 1st field of the 1st column. The next click works fine. It's only when the grid is getting focus back that it always selects the same field... no matter where I click. How can I get the grid to select the proper row (or cell) when I click on it when the grid is getting focus?