Solved

Check contents of VB form for changes

Posted on 2013-10-31
2
217 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
2 Comments
 
LVL 11

Expert Comment

by:Deepak Lakkad
Comment Utility
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
Comment Utility
There is a Change event on TrueDBGrid which you can hook into

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

744 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

11 Experts available now in Live!

Get 1:1 Help Now