Problem with DataSource.DataChange / Repaint on a wwDBGrid
Hello,
for a current project we use the wwDBGrid to calculate certain numbers. We use the DataSource.DataChange to issue the command to calculate (see below in the code).
The problem is that the wwDBGrid does not display the result until we leave the row or jump into the result row. The goal would be that the result is drawn immediately in the result row or when leaving the cell.
procedure TForm1.dsMEAADataChange(Sender: TObject; Field: TField);
begin
if field = nil then exit;
if ( field = mtbMEAAa ) or ( field = mtbMEAAb ) or ( field = mtbMEAAc ) or
( field = mtbMEAAd ) or ( field = mtbMEAAf ) or ( field = mtbMEAAMenge )
then CalcMenge(mtbMEAA);
end;
Thanks in advance!
Please sign in to leave a comment.
Comments
3 comments