dotConnect for Oracle Documentation
Devart.Data Namespace / DataLink Class
Members Example

In This Topic
    DataLink Class
    In This Topic
    Allows establishing flexible cross-form data binding.
    Syntax
    Remarks

    For information on features of DataLink please refer to topic DataLink Component Architecture. See also description of InterForm Technology.

    Note: This class is not available in .NET Standard compatible assemblies. It is available only in the assembly for full .NET Framework.

    This class is available only in Professional and Developer Editions. It is not available in Standard and Mobile Editions.

    Example
    It is recommended to work with this component in design time. For example, if you create the OracleDataTable object (“myDataTable1”) on Form1, you can access Form1's myDataTable1 via the DataSource property of Form2's DataLink object (“dataLink1”). In this case, you will find the following entry in Form2.InitializeComponent():
    private void InitializeComponent() {
            ...
            this.dataLink1.DataSource = ((object)(Devart.Common.GlobalComponentsCache.GetObjectByName("Form1.myDataTable1")));
            ...
    }
    Private Sub InitializeComponent()
            ...
            Me.DataLink1.DataSource = CType(Devart.Common.GlobalComponentsCache.GetObjectByName("Form1.myDataTable1"), Object)
            ...
    End Sub
    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.ComponentModel.Component
             System.Windows.Forms.BindingSource
                Devart.Data.DataLink

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also