Delphi TDBGrid edit inplace with drop down list -


i have maintenance old delphi v7 application uses tdbgrid allowing inplace editting drop down lists.

the issue is: grid show values present @ data source. without editting, no problem @ all. if change value, grid show newly set value after updating underlying register (until "old" value displayed).

this applies drop down lists. other input types (checkboxes, text edits) work without problems.

the edit works fine: changed values reflected in datasource when register update'd. problem displaying not-yet-update'd value.

i have no idea how debug this, or further inspect behavior. if don't have complete answer, please indicate else can find solution.

update

the project used tdb3dgrid (whose source i'm not aware of), simplify things i've changed tdbgrid. no avail. change true/false columns displayed text, , edited text boxes (displaying , accepting "true" , "false" strings); tdb3dgrid showed checkboxes.

other columns (not edited trough drop down list) fine: after editing new value displayed correctly before updating underlying register.

i'm still tracking down list of alternatives fill drop down list comes from.

also still trying come mcve.

update 2

apparently (now) tdbgrid's affected tdbgridcolumn has empty picklist property. sure designtime. think not changed in runtime.

tdbgrid's source child of tquery, affected field has fieldkind equal fklookup. other properties set field fieldname, keyfields, lookupdataset, lookupkeyfields , lookupresultfield.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -