DBGrid picklist selection sets wrong value when lookup dataset has duplicate value
Original Reporter info from Mantis: ludob
-
Reporter name: Ludo Brands
Original Reporter info from Mantis: ludob
- Reporter name: Ludo Brands
Description:
Using the test program attached to issue 0020841, selecting the second 'xxx' in the picklist for the NAME column in the dbgrid will update MasterID to 1 instead of 3.
Problem is in TCustomDBGrid.UpdateData that does a edField.LookupDataSet.Locate or a edField.LookupList.FirstKeyByValue (when cached) using the value instead of the key.
Mantis conversion info:
- Mantis ID: 20895
- Version: 0.9.31 (SVN)
- Fixed in revision: 58686 (#8ff1532c)
- Monitored by: » BigChimp (Reinier Olislagers), » luizamerico (Luiz Americo)