Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Grid Column cell Setfocus problem
Message
 
 
To
14/01/2011 03:36:47
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01496119
Message ID:
01496161
Views:
45
>Hi,
>I have a data grid for editing a table, it have only 3 columns only.
>for example:
>Column 1 is Client code, column 2 is client name, column 3 is client address
>when add a new record, I want to check column 1 is a valid client code before tab to column 2,
>if the input not a valid client code, I want setfocus to column 1 until input a valid client code.
>
>I put the code in the Valid Event, but it don't allow me to setfocus here,
>I try put the code in Lostfocus event, but not success.
>
>Please advise.
>
>Derek

Using the same search pattern I always use when I see this type of question I found this thread Re: Grid BeforeRowColChange Thread #295681 Message #295799
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform