Solved

Check contents of VB form for changes

Posted on 2013-10-31
2
226 Views
Last Modified: 2013-11-07
I have a VB2010 form that has a few text boxes, a couple of combo boxes, a TrueDBGrid and some datetimepickers.

I am using a dataset with several tables to databind the above. All works fine. But, very importantly I need to check if the user changes any of the data so I can increase a revision number. If they just go and look then no revision increases.

I have tried textbox_leave and textbox modified event to set a boolean flag which seems to work but the datetimepicker or the combo boxes, truegrid don't have this event.

I struggled with using the dataset Haschanged and Getchanges but I cannot get these to work


Any ideas?
0
Comment
Question by:milkwood
[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 Comments
 
LVL 11

Expert Comment

by:Deepak Lakkad
ID: 39615897
Hi,

There is SelectedValueChanged event for ComboBox and ValueChanged Event for DateTimePicke. Which you can use to set your boolean flag value.

I haven't use TrueGrid, but as per my knowledge, there should be some event related with Cell Value changed.

I thinks this will help you ...

Deepak Lakkad
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 39617355
There is a Change event on TrueDBGrid which you can hook into

http://helpcentral.componentone.com/docs/c1truedbgrid/c1truedbgridchangeevent.htm
0

Featured Post

Technology Partners: 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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

738 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