Ross Wyborn
2008-12-01 19:50:15 UTC
Is there a way to refresh a grid without painting the current row as the
first row in the grid?
My application has a table in a grid with a bunch of numbers. I want to add
the rows and columns as the numbers are entered just like an excel
spreadsheet.
I attached the addition procedure to the onSelChange of the grid. To prevent
the cursor changing in the grid I saved the row then opened a new query to
make the additions (looped through the new query) Totals of the
columns(fields) go into entryfields on the form and this is fine. The totals
of the row goes into a total field in the rowset. I refresh the rowset, then
refreshcontrols then refresh the grid. It all works well except I find it
annoying that the enteries that have been made scroll off screen. If I leave
out the grid refresh the field will not refresh until the user clicks on
that field (somethink the user should not do). If I put in a rowset.first it
goes into an endless loop and crashes the program. I don't want it to go to
the first row anyway.
Any advice would be appreciated.
Ross Wyborn
first row in the grid?
My application has a table in a grid with a bunch of numbers. I want to add
the rows and columns as the numbers are entered just like an excel
spreadsheet.
I attached the addition procedure to the onSelChange of the grid. To prevent
the cursor changing in the grid I saved the row then opened a new query to
make the additions (looped through the new query) Totals of the
columns(fields) go into entryfields on the form and this is fine. The totals
of the row goes into a total field in the rowset. I refresh the rowset, then
refreshcontrols then refresh the grid. It all works well except I find it
annoying that the enteries that have been made scroll off screen. If I leave
out the grid refresh the field will not refresh until the user clicks on
that field (somethink the user should not do). If I put in a rowset.first it
goes into an endless loop and crashes the program. I don't want it to go to
the first row anyway.
Any advice would be appreciated.
Ross Wyborn