Groups | Blog | Home
all groups > c# > june 2007 >

c# : Display Linked-List in a DataGridView?



Marc Gravell
6/24/2007 9:00:52 PM
data binding generally (including DataGridView) uses the IList (or
IListSource) interface(s), which LinkedList<T> does not implement. As
such, no: this won't work "as is". It would probably be possible to
create a view around LinkedList<T> that provided this functionality
(including a typed indexer "T this[int]", and perhaps IBindingList
support), but I wonder if it is worth it... could you not just use
List<T> / BindingList<T> at this point?

Marc

bern11
6/24/2007 11:26:13 PM
How do I set a linked-list as a data source for a DataGridView control?
Should the linked list be a member on a form or its own global class
(or doesn't matter...???) Right now when I set the list as the data
source, the only columns I get are Count, First, and Last. I want data
AddThis Social Bookmark Button