J
John Devlon
Hi,
I would like to bind a gridview to an arraylist, which contains a
collection of custom objects.
I've created a gridview, which has a "Name" column and the text field
property set to "Name".
The code I used ....
Dim myList As New ArrayList()
Dim myPerson As clsPerson
myPerson = New clsPerson
myFile.Name = "John"
myList.Add(myFile)
GridView1.DataSource = myList
GridView1.DataBind()
When running the code, an error is trown on the databind line... "there is
no field or property with the name "Name" in the selected source
"
Can anyone please help me ?
John
I would like to bind a gridview to an arraylist, which contains a
collection of custom objects.
I've created a gridview, which has a "Name" column and the text field
property set to "Name".
The code I used ....
Dim myList As New ArrayList()
Dim myPerson As clsPerson
myPerson = New clsPerson
myFile.Name = "John"
myList.Add(myFile)
GridView1.DataSource = myList
GridView1.DataBind()
When running the code, an error is trown on the databind line... "there is
no field or property with the name "Name" in the selected source
"
Can anyone please help me ?
John