Subject | Calculated fields and TIB_Grid redraw |
---|---|
Author | mircostange |
Post date | 2002-02-11T13:57:51Z |
Hi Everyone,
I have a query with some calculated fields, where
the calculation is done on the client (i.e. with
the CalculateField event).
My issue is that when some event happens (e.g. keypress)
I would like to recalculate the fields and have
a connected grid redraw its current row.
As far as I got, I call
queryOrders.InvalidateCalculatedFields;
ib_grid1.InvalidateRow(aRow,false);
but the result is not that the new calculated fields
show up in the grid. However, when I move to the next
row, the previously selected row is properly redrawn
and has the new field contents in it.
There is no difference if I call
ib_grid1.InvalidateRow(aRow,TRUE);
instead, so I am out of ideas here.
Mirco
I have a query with some calculated fields, where
the calculation is done on the client (i.e. with
the CalculateField event).
My issue is that when some event happens (e.g. keypress)
I would like to recalculate the fields and have
a connected grid redraw its current row.
As far as I got, I call
queryOrders.InvalidateCalculatedFields;
ib_grid1.InvalidateRow(aRow,false);
but the result is not that the new calculated fields
show up in the grid. However, when I move to the next
row, the previously selected row is properly redrawn
and has the new field contents in it.
There is no difference if I call
ib_grid1.InvalidateRow(aRow,TRUE);
instead, so I am out of ideas here.
Mirco