Subject | IBO and Grid selection |
---|---|
Author | Andy Murphy |
Post date | 2003-05-27T11:46:37Z |
Hi,
I use anTIBOQuery and display it in a grid.
Because we only load in 80 records maximum at a time we dont use a grid with
an auto sort function enabled.
So to sort the grid, we simply resend the query adding an 'order by' clause
in it.
It works fine apart from one thing. If the user is on a certain record (ie.
has it selected) then sorts the grid, the record he was on is now lost
because the first record becomes selected again.
If the table we use has a key field and it is set up properly in the key
links of the IBOquery, is there an easy way of locating that record again in
the dataset so we can have the grid select it?
Thanks,
Andy
I use anTIBOQuery and display it in a grid.
Because we only load in 80 records maximum at a time we dont use a grid with
an auto sort function enabled.
So to sort the grid, we simply resend the query adding an 'order by' clause
in it.
It works fine apart from one thing. If the user is on a certain record (ie.
has it selected) then sorts the grid, the record he was on is now lost
because the first record becomes selected again.
If the table we use has a key field and it is set up properly in the key
links of the IBOquery, is there an easy way of locating that record again in
the dataset so we can have the grid select it?
Thanks,
Andy