Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to Calculate UnBound Form Fields when Data Changes

Posted on 2006-07-11
3
Medium Priority
?
326 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
[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
3 Comments
 
LVL 5

Accepted Solution

by:
nickhoggard earned 500 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

670 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