Hi,
I have SortedList (Records1). I that I am storing data in the format of
1. Records1.Add(Item.Date.ToShortDateString() + Item.ChanceryCode + Item.Reference.ToString() + Item.Year.ToString(), Item); 2. The keys for Record1 are
1/1/2006I118338020021/1/2007C124735220041/1/2007I124733420021/1/2007I124733520021/1/2007I124733620021/1/2007I124733820021/1/2007I124734420041/1/2007I124734520041/1/2007I124735320041/10/2006C118673220011/10/2006C11869032003
My question is I have to iterate sortedlist year wise to get values and then I will do calculations Item taxesfor Example :
2001 has 1/10/2006C11867322001
2002 has1/1/2007I124733420021/1/2007I124733420021/1/2007I124733520021/1/2007I124733620021/1/2007I12473382002
20031/10/2006C11869032003
20041/1/2007C124735220041/1/2007I124734420041/1/2007I124734520041/1/2007I12473532004
Finally I print
2001 1000.00 ( It's Total += Item.Tax for this 2001 yr)2002 2300.00 ( It's Total += Item.Tax for this 2001 yr).......
Please provide help on this.Thanks in advance