Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

dbgrid ONCOLEXIT EVENT Urgent.

134 views
Skip to first unread message

Maggie Chau

unread,
Mar 20, 1999, 3:00:00 AM3/20/99
to
Hi all, I created a grid. In the on colexit event, I make a check, If the
check is False,. how can I make it in this column instead of going to the
other column. Or I should make a check in another event handler. and how?
thanks very much.

best regards
maggie chau

Deborah Pate

unread,
Mar 21, 1999, 3:00:00 AM3/21/99
to
<<Maggie Chau wrote:
"Hi all, I created a grid. In the on colexit event, I make a check, If the
check is False,. how can I make it in this column instead of going to the
other column. Or I should make a check in another event handler. and
how?">>

Well, you could put the check in the Grid's OnKeyDown event, like this, for
example:


if (DBGrid1.SelectedIndex = 4) and (Key = VK_TAB) then begin
{ if check fails then}
Key := 0;
end;


0 new messages