EhLib.Com https://forum.ehlib.com/en/ |
|
Capturing empty data event (dbgrid) https://forum.ehlib.com/en/viewtopic.php?f=5&t=1034 |
Page 1 of 1 |
Author: | spk2000ar [ 09 Mar 2020, 17:10 ] |
Post subject: | Capturing empty data event (dbgrid) |
Hi! i am trying a dbgrideh, with sortlocal, stfilter in false, and search panel, linked to a unidac query about a table in postgresql. When i search data and get an empty result set, the emptydatainfo is active and displayed well. But, i want to disable some buttons on the parent form either. What is more, the dlbclick event is capture, dispite there is no data (dblclick gives me access to modify a record in a subform, and it get de data of the last selected record, but there is no data in sight). I try to reach the event of empty data at searchpanel.onsearcheditchange, but it occurs before the "filter" is applied. So i do not see an empty set at that moment. Is there a event such as after search impact? or a property to check that value, that gives me the possibilitiy of locking dbgrideh to prevent dlbclick event if there is no data displayed? Thanks you all! |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |