Solved

Datagrid : how to detect row changes

Posted on 2003-10-23
4
315 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
fantasy1001 earned 125 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Suggested Courses
Course of the Month11 days, 3 hours left to enroll

632 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