Here is an interesting issue. I have a grid. I log transactions to the grid.
I do a grid.refresh after each record addition so that the grid refreshes.
This works well, except when traffic is heavy, cpu usage is very high due to
the grid.refresh being done 5 or 10 times a second, and the form controls
can become unresponsive, and incoming transactions can become queued up. If
I disable the grid.refresh, cpu is 5% and incoming transactions don't get
queued, all is well - except the grid does not get refreshed.
So I came up with a method that only refreshes the grid once or twice a
second to prevent excessive cpu usage. This works quite well except for one
issue. This is the tricky part.
If you add one record and do a grid.refresh, the record you just added
appears at the bottom of the visible grid. If you add more then one record
and do a grid refresh, the last record you added appears in the middle of
the visible grid, and the display of records jumps up accordingly. The next
record appears underneath this, the next under that, and so on until it gets
to the bottom of the visible grid. Then it jumps up again. I have a form I
can post if anyone wants to see an example.
Question - how can I add more then one record at a time and do a
grid.refresh AND have the last record appear at the bottom of the visible
grid?