I have a grid with two columns. The Record Source is a table that has two indexes to reference the data in the first and second columns. I put code in the header click events to change the order and refresh the grid. The problem is that I loose the record reference when I change the order between columns.
The code in each header click event is:
set order to index in table
thisform.grid.refresh()
thisform.grid.column.text.setfocus
If I am on record n in the first column when I click the header in the second column I do not maintain the same record number after I resort the second column.
The code in each header click event is:
set order to index in table
thisform.grid.refresh()
thisform.grid.column.text.setfocus
If I am on record n in the first column when I click the header in the second column I do not maintain the same record number after I resort the second column.