What makes an object to be Bindable in .net ?
Ive been answered once that it is the Ienumerable class which makes it Bindable.
However when I look at DataTAble ( System.Data) , it doesn’t implemenets Ienumerable :
public class DataTable : MarshalByValueComponent,
IListSource,
ISupportInitializeNotification,
ISupportInitialize,
ISerializable,
IXmlSerializable
{...}
and still , we can write :
myObj.DataSource=myDataTable;
myObj.Bind();
help ?
DataTableimplementsIListSourceby providing theDataTable.DefaultViewDataViewimplementsIBindingListwhich is what the binding targets actually use