Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Datagrid : how to detect row changes

Posted on 2003-10-23
4
Medium Priority
?
324 Views
Last Modified: 2013-12-26
Hi,

How do I trigger the row changes event on a datagrid ? for a column change, I could use :

* Datagrid1_AfterColUpdate and
* Datagrid1_BeforeColUpdate

if I want to add any coding in it. However, I don't know what should I use in order to put any coding before the row actually changes. So, how to detect row changes on a datagrid ? Is there any VB method out there that are already available but I do not know of ?

Please advise.

Thanks
0
Comment
Question by:terrible1000
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
fantasy1001 earned 500 total points
ID: 9605894
Use a event call :RowColChange
0
 

Author Comment

by:terrible1000
ID: 9611791
Hi,

I have tried that, but the coding I put inside that event call was not executed when I change to a new row. How to deal with that ? I want to prompt a message box ("update row ?") which ask user whether he/she would like to add the row he/she has just entered. But clicking the row below the one the user is entering didn't prompt up the code I put in the rowcolchange event call ?

Any other ideas ?

Thanks
0
 

Author Comment

by:terrible1000
ID: 9612057
Hi,

Got it working now.

Thanks
0
 

Expert Comment

by:acible
ID: 11996729
'try

Datagrid1__CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles grdFinance.CurrentCellChanged

It's work for me.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

824 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