Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Record Pointer within Grids

Status
Not open for further replies.

youwannawhat

Programmer
Oct 3, 2001
43
0
0
US
During runtime of my application, the record pointer seems to move to the top of the source table when the user clicks on a record inside the grid object, following a short delay.

Any ideas?
 
Hi,

You should probably check the methods of the grid and see which one is causing that problem. Most probably you have some method either in when, AfterRowColumChange, BeforeRowColumChange, etc.
 
If the user clicks on any row in the grid, the record pointer of the underlying table moves to that position.

Does this happen if the user just clicks on a non cell element of the grid? What I mean by a non cell element is - the header, scroll bar, etc.

If it moves to the top of the underlying table and the user isn't clicking on a cell, then, the grid might be getting reconstructed somehow. Check if you have any code in the gotfocus, when, etc. that could be reloading the grid.

How is the grid being populated? Underlying table(alias), query, or SQL?

Darrell 'We all must do the hard bits so when we get bit we know where to bite' :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top