BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TDBCtrlGrid tricky one

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop)
View previous topic :: View next topic  
Author Message
BruBru
Guest





PostPosted: Thu Nov 09, 2006 1:45 am    Post subject: TDBCtrlGrid tricky one Reply with quote



Hi,

I am currently writing an appl. to keep track of employee working times. For
some reasons i need to do this by means of TDBCtrlGrid. The pannels of the
grid have, among others, some TDBEdit controls on it.
(Lets say starting-time and ending-time.) I want to be able to attract the
users attention on the fields of the records, where, for example, the
starting-time is entered but not the ending-time. To do so i would like to
have the particular TDBEdit-control's background to turn red.

I partially managed to do so by checking the values of the editfields in the
OnEnter & OnExit events of the TDBEdit controls. Hereby setting the collor
of the particular TDBEdit control to the desired one. Works fine.

The problem occurs when moving to another record (Off the record edited).
Skipping to another record makes the color of the TDBEdit-control's
background change for all records (on all panels) of the TDBCtrlGrid.

Anyone's help having a clue on solving this tricky prob, would be greatly
appreciated.

Thanks,
BruBru
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.