Click here to Skip to main content
16,004,727 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have my ListView with one column for job description and one subitem column for amount. It is populated by, but not bound to, a datatable.

The ListView is correctly displaying grouped data as follows

General Fees
Doc preparation...........$250.00
On site inspect..............$330.00

Government Charges
Stamp Duty.....................$ 95.00
Taxes.................................$112.00

I would like to be able, in a second subitem column, to have a total for each group, so that it appears in the following format.

General Fees
Doc preparation.......$250.00
On site inspect..........$330.00............$580.00

Government Charges
Stamp Duty.................$ 95.00
Taxes.............................$112.00............$207.00

Total..........................................................$787.00

If anyone can guide me as to how to achieve this, I would be most grateful. I have googled all day without success. (PS the dots are just for spacing purposes)

Thanks in advance
Posted
Updated 13-Oct-13 20:45pm
v4
Comments
Madhu Nair 13-Oct-13 10:12am    
Is it Desktop or Web based application?
ennex 13-Oct-13 17:57pm    
Hi. It is a desktop application deveoped in VB.Net 2012 pro version

1 solution

Look at this linkListView Grouping XP Style[^] posted on CodeProject by TylerBrinks. I think this is what you required
 
Share this answer
 
Comments
ennex 14-Oct-13 2:44am    
Hi. Thank you for making the effort to assist me, it is appreciated. However, this is a VB.Net 2012 ListView Control, and the use of the API suggested in the linked article is not applicable. Also, as you can see from the question, I can successfully break down the data into groups. I am looking for a way (if there is one) to get a sub total for each group.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900