Jump to content


Photo

OnRowAdded Event ?


  • Please log in to reply
1 reply to this topic

#1 Afiag

Afiag
  • Members
  • 117 posts

Posted 21 July 2010 - 01:32 AM

Hi Berg

I'd like some code to run everytime a row gets added to my dbgrid. But I don't see a "onrowadd" event or something similar. I could use "ondrawcell" but that would run the code multiple times every time a row is added I guess .. which doesn't seem to efficient....

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 21 July 2010 - 06:12 PM

Hello Afiag,

Unfortunately there is no such event in NextDBGrid. I think that you may do this with TDataSet instead (OnAfterInsert event for example).

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users