2 EVGL
Читаем в книжке Creating Forms\ Designing Forms статья Using Display and Edit Methods
Tips
A display method is called each time the form is re-drawn and consequently a display method should never hold calculations more complex and time consuming than what corresponds to one direct lookup in the database.
A display (or an edit) method is not activated if it is on a hidden tab page
Так что гораздо лучше сделать кнопульку "Занято" на форме шт.расп. и считать эти Join'ы на здоровье :-) А из Grid'а убрать...
__________________
С уважением,
Андрей Беседин
|