Ladies Man
Platinum Member
ok.... since my teacher is all wise and mighty he decided to combine 2 exercises and the book doesn't explain how to do both things that I need to do.
I have a Datagrid with information in it, along with some labels above it that have information.
Information comes from 1 access database, and is made up of 2 tables
I can get the information to come up in all the labels and in the datagrid..... so i know the binding is right...
When i go first, next, previous, last... all the right info comes up
Ok... Now i need to add up 4 different things from within the datagrid.
Like how many are listed.... what is the total of the things that are listed...
ex.
ID TotalPay
1 10
2 20
3 30
So i would need a label to show 3 listings, total pay = 60
I can get it to add it up correctly for the first record that comes up, but if you click to the next record, it still thinks the information should be from the first record, so the information doesn't change.
I've tried putting in refreshes, clears, my brain is done.
Hopefully what I wrote up there makes sense. Any help is appreciated. I have the file zipped up if anyone would like to look at it.
I have a Datagrid with information in it, along with some labels above it that have information.
Information comes from 1 access database, and is made up of 2 tables
I can get the information to come up in all the labels and in the datagrid..... so i know the binding is right...
When i go first, next, previous, last... all the right info comes up
Ok... Now i need to add up 4 different things from within the datagrid.
Like how many are listed.... what is the total of the things that are listed...
ex.
ID TotalPay
1 10
2 20
3 30
So i would need a label to show 3 listings, total pay = 60
I can get it to add it up correctly for the first record that comes up, but if you click to the next record, it still thinks the information should be from the first record, so the information doesn't change.
I've tried putting in refreshes, clears, my brain is done.
Hopefully what I wrote up there makes sense. Any help is appreciated. I have the file zipped up if anyone would like to look at it.