Hi,
I have a BookBag object (ArrayList) that holds a number of BookBagItem objects. Each BookBagItem has several properties (ISBN, Stock#, etc.). Its easy enough to populate the BookBag with BookBagItems, but im having difficulty binding the BookBag to a DataGrid to display each of the BookBagItems.
The returned error is as follows:
An invalid data source is being used for dgBookBag. A valid data source must implement either IListSource or IEnumerable.
I have some code (C#) for a small windows form that i downloaded that demonstrates binding and ArrayList to a DataGrid in a similar manner.
I just cant seem to get my head around this...am I just being really stupid and not seeing the solution?
Any help appreciated!
(pls let me know if i should post some of my code...)
Start Free Trial