Setting a different order on a grid from header1.click works ok, but I
have a different problem: for compatibility reasons I want to emulate
the following behaviour:
- a record in the middle of a grid is selected
- keypress of tab is received
- order changes to the next available tag
It works already, BUT: the selected record vanishes; the record which
didn't move is the topmost visible record, and not the selected record.
I've even forcibly refreshed the grid after reordering, but to no avail.
Now how the hell do I know in which row am I (i.e. the selected record),
and how do I force the grid to keep the selected record intact, and not
the top visible record? Besides, how do I know how many records in a
grid are visible? Didn't find anything like a RowCount property.
p.s. This worked perfectly in a browse :(. No, I wasn't using the browse
for things like that - it had other disadvantages of its own.