Solved

Grid Control

Posted on 2002-07-25
6
186 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to create a duplicate finder Application 9 120
passing a value with stream reader AFTER a ";" 3 66
Passing a Text Box name to a Sub 6 96
Help me. 3 54
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

786 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