Solved

Grid Control

Posted on 2002-07-25
6
196 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

860 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