bloukewer
Well-known member
- Joined
- Jul 2, 2004
- Messages
- 88
- Programming Experience
- 3-5
Hi guys. When binding a datagrid to an arraylist I receive a message that says: system.argumenterror - cannot create a child list for "EMPLOYEE".
Usually i just say:
datagrid.dataource = arraylistname
datagrid.datamember = nameOfAListElementsType
I've tried the setdatabinding equivalent but it produces the same bad results.
I need to set the datamember because I need to format the columns in the grid.
Anyways, I feel kinda stupid for asking this because I had the same problem about two years ago, but unfortunately I cannot remember how I solved it. (That and the fact that I am supposed to be a hardcore VB.Net entusiast).
Usually i just say:
datagrid.dataource = arraylistname
datagrid.datamember = nameOfAListElementsType
I've tried the setdatabinding equivalent but it produces the same bad results.
I need to set the datamember because I need to format the columns in the grid.
Anyways, I feel kinda stupid for asking this because I had the same problem about two years ago, but unfortunately I cannot remember how I solved it. (That and the fact that I am supposed to be a hardcore VB.Net entusiast).