Start editing in DataSet through DBComboBox, application closes automatically
Original Reporter info from Mantis: giovanni.seara
-
Reporter name: Giovanni Seara
Original Reporter info from Mantis: giovanni.seara
- Reporter name: Giovanni Seara
Description:
When editing the DataSet is started through a DBComboBox and in the BeforeEdit an exception is raised, the application automatically closes.
The error occurs because running the EditingDone method is called UpdateRecord where the DataSet state is required to be in write mode. The DataSet state is modified for navigation because the edit is canceled because of the exception in BeforeEdit.
Steps to reproduce:
1 - Implement BeforeEdit of the DataSet to raise an exception.
2 - Keep the DataSet state in navigation.
3 - Initialize the registry editing through the DBComboBox drop-down menu.