Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Totaling data in a grid

Status
Not open for further replies.

kimprogrammer

Programmer
Joined
Sep 15, 2008
Messages
160
Location
CA
Hello
I would like to total the data I have in a DataGrid and was wonderin what the best way to do this is.

I have pulled a datagrid onto my screen. There will be many paycodes in the grid that I would like to total and then display on the screen.

I have started creating a structure group where i want to put the paycodes in the first column of the array then add the amounts to the totals in the second column of the array. I would read the through the file populating first the paycodes then read it a second time adding the amounts to the total. Once done print the array on the screen.

Is there a better way of doing this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top