Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 10th, 2006, 03:58 AM
Authorized User
 
Join Date: Mar 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to display the arraylist contents into a table yzlin04 ASP.NET 2.0 Basics 2 July 27th, 2007 06:23 AM
Dynamic List Content cyberddindia Classic ASP Basics 3 October 24th, 2006 10:29 AM
How to dynamic display the content of the table? myhrvod Pro Java 0 August 3rd, 2006 12:42 AM
ArrayList DataGrid databinding celades C# 0 October 9th, 2003 06:39 AM
DataGrid ArrayList DataBinding celades .NET Web Services 1 October 9th, 2003 06:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.