Solved

Grid Control

Posted on 2002-07-25
6
167 Views
Last Modified: 2011-09-20
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.
0
Comment
Question by:curtis591
6 Comments
 
LVL 1

Expert Comment

by:prakashbitra
ID: 7177982
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
0
 
LVL 6

Author Comment

by:curtis591
ID: 7178016
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.
0
 
LVL 6

Author Comment

by:curtis591
ID: 7178184
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.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 50 total points
ID: 7179341
prakashbitra,

You have been here long enough to know not to lock questions with answers.  If you have any questions about this policy, please re-read the EE Guidelines (http://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp)

curtis591,
Feel free to reject any proposed solution that does not answer your question.  This will put it back in a more visible forum.

Anthony
0
 
LVL 2

Expert Comment

by:ventond
ID: 7180709
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

0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 7196178
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
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now