Sum inside a table

M

max

I have a form and 5 textbox bounded to a table, called Listing; this table
contains many records; every textbox bounds to a different column and show
some price (price1, price2, ...price5). I add, update and display the
records just using the binding navigator.
Then I need another textbox that must show the sum of all the 5 prices. This
'total' field must then be written in a column, called Total, inside the
same table. Obviously I want this value comes automatically, so when I go
through records I could see the total displayed for each one.
Can anybody help me on how to achieve this?

Thanks.
Max
 
M

Max

Petar,
That's not really what I need.
The example you post concerns datagridview and columns added to a dataset.
I need the 'total' columns is displayed on a textbox, and the value is added
to the database, in a column called 'Total'.
Thanks.
Max
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top