Link to home
Start Free TrialLog in
Avatar of curtis591
curtis591

asked on

Grid Control

I have a grid control that has text boxes at the bottom of the screen that are both linked to a record source.   When the user presses the edit button is there a way that I stop them from moving to a different record in the grid.
Avatar of prakashbitra
prakashbitra
Flag of India image

Get the row using .selectedrow property and increase the row number to the next record only when the .Rows > 1
and the current row position is less than .Rows
Avatar of curtis591
curtis591

ASKER

Where do I want to put that.  Will this stop the user from being able to tab and arrow around the grid while they are in edit mode.
Where do I want to put that.  Will this stop the user from being able to tab and arrow around the grid while they are in edit mode.
ASKER CERTIFIED SOLUTION
Avatar of Anthony Perkins
Anthony Perkins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Why make them use the edit boxes? Most grids will allow inline editing. If the user moves to another row his current changes are saved.

If you still want to use text boxes, how about disabling the grid until OK or cancel is clicked?

Edit_click
grid.enabled=false


OK_click
grid.enabled=true

curtis591,

I think you may have awarded points to the wrong comment.  Post a message in Community Support and they can set it straight.

Anthony