I have TDbGrid in my project and I try to delete the event every time I change the selected row. Any change in the row already updates all controls associated with the data associated with the same data source, but there are other changes that I need to handle events.
I thought OnColEnter would work. According to the help file, it fires when:
The user navigates to the cell using the keyboard. For example, when the user uses the Tab key or the Home key.
The user presses the mouse button down in the cell.
The SelectedField or SelectedIndex property is set.
Unfortunately, it does not work when the user navigates using the keyboard, and the dgRowSelect option is enabled, and there is no OnRowEnter. And the OnKeyDown event fires before the selection change has been made. I am trying to mimic a version of TListBox that supports data, and I need to replace something with the OnClick List Box handler, which, despite the fact that the name is really disabled at any time when the selection changes, whether using the mouse or keyboard. Is there a way to do this using TDbGrid? If not, there must be some other grid control that will do this. Does anyone know what this is? (Preferably open source?)
source
share