Information générale
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Calculated fields in bound DBGrid
I use a DBGrid control bound to a control data. I would like to calculate the average of the fields of the recordset and have this average appearing in a supplemental column of the grid control (not bound to the control data). I would also like this average to refresh instantaneously each time the user modify one field of the grid.
I tried to do that by using a clone recordset and the BeforeColUpdate event of the grid but it didn't work.
Thanks in advance,
Regards PEC
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement