I get a System.ArgumentOutOfRangeException, even thoug I know that the arraylist&#039;s Capacity is much higher then the index I&#039;am using. <BR>Have tried :<BR> arrDS(TempFirmId) = TempFirm<BR>and<BR> arrDS.Insert(TempFirmId, TempFirm)<BR><BR>I declare arrDS like this:<BR> Dim arrDS As New ArrayList(TopRowNr + 1)<BR>and have also tried<BR> Dim arrDS As New ArrayList<BR>witch gives me the standard capacity of 16.<BR><BR> arrDS.add(TempFirm) works great, but thats not what I need..<BR>