P
P
Porto_b2020-04-26 09:38:03
Delphi
Porto_b, 2020-04-26 09:38:03

DELPHI DblookupCombobox cancel sync?

The form has DBGrid and DBLookupComboBox, both have the same DataSource, that is, the data is taken from the same table.
And so if to change value in Combobox that visually in DBGird too this value changes how to cancel this change.

The problem is that I have two fields, one is a normal Edit Text editing window and the other is the above-mentioned DBComboBox, when data is entered into a normal Edit Text, the DBGrid data is naturally not updated (you need to click on the button) and when editing in DBComBoxLookup, they immediately change the value, although not saves (as it should be) and it all looks ugly like that.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2020-04-26
@tsklab

Either for editing use TDBEdit, or for DBGirduse separate DataSet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question