Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there an event when changing records in a TTable or DBGrid ?

Status
Not open for further replies.

RonR51

Programmer
Apr 19, 2001
18
AU
I have a DBGrid attached to a TTable (local Paradox) and I want to display and update the total of the values in the same field for each displayed record in a separate control (TEdit). I can trigger an event when the user changes columns (OnColExit) to update the total but I can't find an event to use when the user moves to the next record in the same field using the up or down arrow keys.

Is there an event in either the DBGrid or the TTable that will allow me to update the total as the user moves to the next record?

Thanks to those who responded to my last post about bolding the caption of a radiogroup. I should have specified that it was a DBRadiogroup I was using.

Thanks

RonR51
 
Try the OnCalcFields event in your table or query

Regards S. van Els
SAvanEls@cq-link.sr
 
I tried OnCalcFields, it doesn't work either. It only triggers when moving between columns, not when moving between records.

RonR51
 
Try the onDataChange event in your datasource

Regards S. van Els
SAvanEls@cq-link.sr
 
I usually use the AfterScroll event of the TQuery. TTable has one but I'm not positive that it works the same. For queries it fires whenever you change records. TealWren
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top