TDBComboBox allowing select an item with TDataSource.AutoEdit = False
Original Reporter info from Mantis: EdyKnopfler
-
Reporter name: Éderson Cássio
Original Reporter info from Mantis: EdyKnopfler
- Reporter name: Éderson Cássio
Description:
I just have made a modification to lcl/include/dbcombobox.inc, method TDBComboBox.Select.
It is treating the DataLink in this procedure, and the action occurs after the user already have select his option.
So, I made it reset the DataLink and go back to the original field value, if the DataLink cannot Edit.
Steps to reproduce:
. Setup a database connection
. Put a TDataSource and a TDBComboBox on your form
. Set TDataSource's AutoEdit to False
. Run the application and select an item in the combo
Mantis conversion info:
- Mantis ID: 24207
- OS: Windows XP
- OS Build: SP3
- Platform: Win32
- Version: 1.0.8
- Fixed in revision: 41411 (#9e57b13d)