Solved

Grid Control

Posted on 2002-07-25
6
177 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

911 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

20 Experts available now in Live!

Get 1:1 Help Now