Henry Olive 5 Posted yesterday at 01:28 PM Good Day I have a DataSource and DBGrid in a Form (The other database comp. are in Data Module) In the DBGrid's first field's PickList has some items I need to catch dbgrid's first field Change so that i'll fill next fields according to selected items from picklist I wrote some codes on DBGrid.ColExit event and every thing is OK, but after i select an item from picklist and hit DOWN key (Next Row) DBGrid.ColExit doesnt triggered I Know there is Field On Change Event in Client Dataset's field editor, but i dont want to write code in data module I solved my problem with OnKeyDown event if Key = VK_DOWN then DBGrid1ColExit(DBGrid1); I thought may be there is a better solution Thank You Share this post Link to post
Lajos Juhász 295 Posted 23 hours ago You wrote the best solution onChange. With this you might covered some situation. What for the case when instead of key down the user click on the row below or above? Share this post Link to post
Hans J. Ellingsgaard 21 Posted 1 hour ago Have you tried DbGrid.OnKeyUp instead. I expect DBGrid.ColExit will be triggered there. Share this post Link to post
Henry Olive 5 Posted 1 hour ago Thank you Hans DBGrid.ColExit triggers ONKEYDOWN w/o any problem I thought if is there any better solution Share this post Link to post