Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.10.09;
Скачать: CL | DM;

Вниз

dbGridEh   Найти похожие ветки 

 
Nikola62   (2003-09-18 12:01) [0]

Подскажите как отловить выход из ячейки (переход в следующую колонку) в режиме редактирования.


 
Alexandr ©   (2003-09-18 12:06) [1]

это чтоли? ну так проверяй тут, что источник в режиме редактирования. Вот тебе и 2 условия

Occurs just before a cell in the grid loses input focus.

property OnColExit: TNotifyEvent;

Description

Write an OnColExit event handler to take specific action when a cell is about to lose focus. For example, use OnColExit to post edits to the underlying dataset when the user leaves a cell, rather than waiting for the user to leave the record.

A cell loses focus when

• The user navigates out of the cell using the keyboard. For example, when the user presses the Tab key or the Home key.
• The user clicks the mouse button down in another cell.
• The SelectedField or SelectedIndex property is set.

When the selected cell in the data-aware grid changes, first the OnColExit event occurs. Then the values of SelectedField and SelectedIndex are updated. Finally the OnColEnter event occurs. Thus, in an OnColExit event handler, the SelectedField or SelectedIndex property can be used to determine which column is about to lose focus.



Страницы: 1 вся ветка

Текущий архив: 2003.10.09;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.021 c
1-27439
JOY
2003-09-28 06:04
2003.10.09
1Кто-нибудь пробовал выравнивать по ширине?


11-27421
SPeller
2003-01-29 11:58
2003.10.09
Ещё одна радость за KOL


3-27402
duke2
2003-09-18 07:31
2003.10.09
Соединение с InterBase с раб.места происходит 100 сек при пустой


3-27393
T2
2003-09-17 20:03
2003.10.09
Удаление записей через AdoTable1


6-27631
Maxim Pshevlotsky
2003-08-11 10:57
2003.10.09
Как расшифровать CHMOD в числовое представление?