Dinkin Posted October 24, 2023 Share Posted October 24, 2023 Добрый день. Одно поле у меня редактируется через выпадающий список (указал как редактор TUniComboBox). Но как бы я не редактировал ItemIndex = -1...Типа так //--------------------------------------------------------------------------- void __fastcall TCategoriesForm::UniComboBox1CloseUp(TObject *Sender) { ShowMessageN(UniComboBox1->ItemIndex); } //--------------------------------------------------------------------------- Как бы мне получить результат выбора поля? Quote Link to comment Share on other sites More sharing options...
Dinkin Posted October 25, 2023 Author Share Posted October 25, 2023 Понял. А есть ли событие после редактирования ячейки в таблице, что была возможность по новому значению скорректировать запрос к базе? Quote Link to comment Share on other sites More sharing options...
Dinkin Posted October 25, 2023 Author Share Posted October 25, 2023 Решил этот вопрос через костыль события DataChange Компонента DataSource Quote Link to comment Share on other sites More sharing options...
Tokay Posted October 25, 2023 Share Posted October 25, 2023 Это не костыль. Это самое верное решение 1 Quote Link to comment Share on other sites More sharing options...
Dinkin Posted October 25, 2023 Author Share Posted October 25, 2023 А могу ли я ка кто отследить завершения получения данных для TUniDBGrid? Что бы на время получения данных, отключить событие OnDataChange компонента DataSource. Quote Link to comment Share on other sites More sharing options...
Tokay Posted October 25, 2023 Share Posted October 25, 2023 Можно попробовать еще какие-то OnBefore события набора. Возможно они окажутся удобнее 1 Quote Link to comment Share on other sites More sharing options...
Dinkin Posted October 25, 2023 Author Share Posted October 25, 2023 Tokay спасибо, действительно событие OnAfterLoad помогло 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.