A data source control that simplifies data binding of GUI controls
to data in a EntityClientCache. Can be used to bind multiple controls to different queries.
Namespace:
C1.Win.Data.EntitiesAssembly: C1.Win.Data.Entity (in C1.Win.Data.Entity.dll)
Syntax
C# |
---|
[ProvidePropertyAttribute("ControlHandler", typeof(Control))] [DesignerAttribute("C1.Data.Design.C1WinDataSourceDesigner, C1.Win.Data.Entity.Design.4.0, Version=4.0.20122.69")] [LicenseProviderAttribute(typeof(LicenseProvider))] [DefaultMemberAttribute("Item")] [ToolboxBitmapAttribute(typeof(C1DataSource), "C1DataSource.png")] public class C1DataSource : Component, IC1DataSource, ISupportInitialize, IListSource, IExtenderProvider, INotifyPropertyChanged |
Visual Basic |
---|
<ProvidePropertyAttribute("ControlHandler", GetType(Control))> _ <DesignerAttribute("C1.Data.Design.C1WinDataSourceDesigner, C1.Win.Data.Entity.Design.4.0, Version=4.0.20122.69")> _ <LicenseProviderAttribute(GetType(LicenseProvider))> _ <DefaultMemberAttribute("Item")> _ <ToolboxBitmapAttribute(GetType(C1DataSource), "C1DataSource.png")> _ Public Class C1DataSource _ Inherits Component _ Implements IC1DataSource, ISupportInitialize, IListSource, IExtenderProvider, _ INotifyPropertyChanged |
Remarks
To bind a control to data in an EntityClientCache,
put a C1DataSource on your form,
specify the context type,
populate the ViewSources collection with EntityViewSource objects to define views (based on queries),
and bind the GUI control to the C1DataSource by setting the GUI control's DataSource and DataMember properties.
Inheritance Hierarchy
System..::..Object
System..::..MarshalByRefObject
System.ComponentModel..::..Component
C1.Win.Data.Entities..::..C1DataSource
System..::..MarshalByRefObject
System.ComponentModel..::..Component
C1.Win.Data.Entities..::..C1DataSource