>What has worked for me is to set focus to the current control in the column whose header is being clicked. Just put a SetFocus() command in the header click method.
Okay, got it perfected now. I had some centered data, and it was kind of jumpy on the sort. But here's the nutshell:
1) At very end of header.click, after indexing/set order code, put
this.parent.text.setfocus
this.parent.text.click
2) Put column.controlsource = 'alltrim(cursor.field)' for each centered data column after SQL, requery, or wherever, fix the jumpiness.
Thanks again for the help...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.