Display dynamic arraylist content in datagrid
Hi,
I need to show the content of arraylist to be shown in datagrid. I used the below code:
Dim arType1 As Array
Dim arType2 As Array
Dim arType3 As Array
Dim lstType As ArrayList
Dim lstPointType As New ArrayList
For iRow = 0 To ds.Tables(sTblName).Rows.Count() - 1
GetResult(arTyp1, arType2, arType3)
lstType = New ArrayList
lstType .Add(arTyp1)
lstType .Add(arTyp2)
lstType .Add(arTyp3)
lstPointType.Add(lstType)
Next
DataGrid1.DataSource = lstPointType
DataGrid1.DataBind()
DataGrid1.Visible = True
The above code shows the datagrid1 with the structure of the lstPointType instead of the content. how do i get the content of the lstPointType to be displayed in the datagrid?
Thanks.
regards,
annsary
|