dataset and Ienumerable

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have read that the binding for a webdatagris is possible only onf the binding object supports IENUMERABLE interface

But dataset and datatable are deriving from IListSource. Then how are they gettong binded to a datagrid

What is the difference b/w ILISTSOURCE and IEnumerable interfaces

plzz help me ou
thnks in advanc
 
Notice
http://msdn.microsoft.com/library/d...lrfsystemcollectionsienumerableclasstopic.asp
That the Dataview object, which is based on a DataTable object implements
IEnumerable, and the same holds for IList
http://msdn.microsoft.com/library/d...tml/frlrfsystemcollectionsilistclasstopic.asp

DataTables implement IListSource
http://msdn.microsoft.com/library/d...SystemComponentModelIListSourceClassTopic.asp
IListSource has only one method.... GetList whereas IEnumerator has only
GetEnumerator
http://msdn.microsoft.com/library/d...lrfsystemcollectionsienumerableclasstopic.asp

But anyway, your question was how, if dataTables only support IList can
grids bind to them if they need IEnumerable.

Briefly, IList is an interface that Implements ICollection AND IEnumerable
ergo, anything that implements IList also Implements IEnumerable.
http://www.ondotnet.com/pub/a/dotnet/2003/09/02/ilist.html

HTH,

Bill
reiks said:
I have read that the binding for a webdatagris is possible only onf the
binding object supports IENUMERABLE interface.
 
Back
Top