General information
Category:
Forms & Form designer
Title:
Restricting Movement In A Grid
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only