Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Restricting Movement In A Grid
Message
From
05/02/2003 00:10:22
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Restricting Movement In A Grid
Miscellaneous
Thread ID:
00749228
Message ID:
00749228
Views:
52
Hello All
Is there a straightforward way to keep the cursor from moving to the next column or row in a grid? In my application, the user is adding detail records to a header file via a grid. I am using BeforeRowChange method to validate input into the cell. If the user keys in an incorrect value, I would like to the cursor to remain in the cell and provide a suitable error message. I have tried using the ActiveRow, ActiveColumn properties to return the cursor to the cell in which the incorrect value was entered, but this does not seem to work consistently. It seems to calculate rows of the grid based on the entire file while in my application, I have filtered the contents of the grid to match the header file information. Putting the question simply, is there a method or property to keep the cursor from moving based on correct input? Will the Valid method for the grid work better than the BeforeRowCol change ? Thanks for any suggestions.

Regards,
Carmen
Next
Reply
Map
View

Click here to load this message in the networking platform