title: get the value from 2-d arraylist in session
body: <p>I have an 2-d arraylist with 2 fixed columns and dynamic rows. The arraylist will be assigned to the session variable at the end of the code below. My question is how can loop thorugh the arraylist from the session to get its value?</p>
  
  <pre><code>If .SQLDS.Tables(.sSQLDSTbl).Rows.Count &gt; 0 Then
      Dim NoOfAdjType(1, .SQLDS.Tables(.sSQLDSTbl).Rows.Count - 1)
  
      For iRow As Integer = 0 To .SQLDS.Tables(.sSQLDSTbl).Rows.Count - 1
          If Not .SQLDS.Tables(.sSQLDSTbl).Rows(iRow).Item("i_commAmt") Is System.DBNull.Value Then
              NoOfAdjType(0, iRow) = .SQLDS.Tables(.sSQLDSTbl).Rows(iRow).Item("productType")
              NoOfAdjType(1, iRow) = Format(.SQLDS.Tables(.sSQLDSTbl).Rows(iRow).Item("i_commAmt"), "#,##0.00")
          End If
      Next
  
          Session("iNoOfAdjAmtType") = NoOfAdjType
  End If
  </code></pre>
  
  <p>I have tried this but it's giving me error <strong>'Too many arguments to 'Public Overridable Default Property Item(index As Integer) As Object'</strong>  </p>
  
  <pre><code>Dim NoOfAdjType As ArrayList = CType(Session("iNoOfAdjAmtType"), ArrayList)
  For i As Integer = 0 To NoOfAdjType.Count
      Dim a As String = NoOfAdjType(0, i)
      Dim b As String = NoOfAdjType(1, i)
  Next
  </code></pre>