Hi everyone and thanks in advance for all possible answers.
I'm having an issue here where I want to load a generic collection to a datagrid on run-time. I keep getting the "no default member" found error.
Below is a basic idea of what I would like to do.
Private m_firstName As String
Private m_lastName As String
Public Property FirstName() As String
'--get and set m_firstName
Public Property LastName() As String
'--get and set m_lastName
A generic collection of type PeopleClass
Now, when coding using the collection, I can access the individual properties of PeopleClass as so:
Dim People As PeopleCollection
People(0).FirstName = "John"
People(0).LastName = "Doe"
People(1).FirstName = "Jane"
People(1).LastName = "Doe"
Now when I create a datagrid and set my datasource to PeopleCollection, and within the datagrid using Container.DataItem("FirstName") and Container.DataItem("LastName"), if get the "no default member found" error when trying to databind.
Does anyone know if theres more you're suppossed to do to allow generic collections in datagrid's?