TUniQuery: delete record does not set modified property?
Posted: Fri 24 Jun 2011 00:45
Hi,
I'm using TUniQuery (name UniQuery) and attach a DBGrid to it. Place a button (name btnChange, default Enabled = FALSE) on the form and attach it to an action with expression "btnChange.enabled := UniQuery.modified". I delete some records in DBGrid, expecting this will trigger the btnChange to be enabled but, no reaction takes place. How to make the idea works? Thank you in advance..
(*edit:
CachedUpdates = TRUE
LocalUpdate = TRUE
*)
I'm using TUniQuery (name UniQuery) and attach a DBGrid to it. Place a button (name btnChange, default Enabled = FALSE) on the form and attach it to an action with expression "btnChange.enabled := UniQuery.modified". I delete some records in DBGrid, expecting this will trigger the btnChange to be enabled but, no reaction takes place. How to make the idea works? Thank you in advance..
(*edit:
CachedUpdates = TRUE
LocalUpdate = TRUE
*)