Hi,
I just noticed a small error in the example code...
> Dim myList As New ArrayList()
>
[quoted text clipped - 7 lines]
> GridView1.DataSource = myList
> GridView1.DataBind()
Does anyone have an idea ? It's not working...
John
Matthijs Krempel - 09 Apr 2008 16:07 GMT
Hi John,
Is the name property public?
It's also better to use a generic list, like: List<Person>
With kind regards,
Matthijs Krempel
> Hi,
>
[quoted text clipped - 15 lines]
>
> John
Eliyahu Goldin - 09 Apr 2008 16:09 GMT
This looks fine. Apparently there is a problem in other parts of the code.

Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
Hi,
I just noticed a small error in the example code...
> Dim myList As New ArrayList()
>
[quoted text clipped - 7 lines]
> GridView1.DataSource = myList
> GridView1.DataBind()
Does anyone have an idea ? It's not working...
John
John Devlon - 09 Apr 2008 23:39 GMT
Hi,
I've tried changing the list definition to
Dim mylist As New List(Of clsPerson)
... but it doesn't seem to work..
The same error occures...
Does anyone have an idea?
Thanx
John