Solved

How to Calculate UnBound Form Fields when Data Changes

Posted on 2006-07-11
3
320 Views
Last Modified: 2008-01-09
Hi,
I'm using VB 2005.
I have a database Application which displays an Invoice.  I'm only saving Certain Fields in the db, For this example assume it's a Subtotal amount and Freight amount.  
I have an unbound Text Field Call Total, which I have a procedure to calculate it's total.

I'm using all components for the database connection ie.  datasets, bindingsource, tableadapter, and navigator.

MY question simply is, where the best place to call my procedure to Calculate the Total whenever the database loads a new record.

I'm thinking on the Bindingsource.posistionChanged but I'm not sure.

Anyother pointers would be helpful.

0
Comment
Question by:shibumila
3 Comments
 
LVL 5

Accepted Solution

by:
nickhoggard earned 125 total points
ID: 17088049
Hi,

We've used BindingSource.CurrentChanged to do similar things in the past.
http://msdn2.microsoft.com/en-us/library/system.windows.forms.bindingsource.currentchanged.aspx

Cheers

Nick
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

685 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