True DBGrid for WinForms | ComponentOne
C1.Win.C1TrueDBGrid.4.5.2 Assembly / C1.Win.C1TrueDBGrid.BaseGrid Namespace / Frame Class / SetDataBinding Method / SetDataBinding(Object,String,Boolean,Boolean) Method
Source of the data
The table to bind to within the object returned by the DataSource property
True to preserve design time layout
True to keep previously expanded groups in GroupBy mode.

In This Topic
    SetDataBinding(Object,String,Boolean,Boolean) Method
    In This Topic
    Binds the grid at runtime
    Syntax
    'Declaration
     
    Public Overloads Sub SetDataBinding( _
       ByVal dataSource As System.Object, _
       ByVal dataMember As System.String, _
       ByVal holdFields As System.Boolean, _
       ByVal keepPosition As System.Boolean _
    ) 
    public void SetDataBinding( 
       System.object dataSource,
       System.string dataMember,
       System.bool holdFields,
       System.bool keepPosition
    )

    Parameters

    dataSource
    Source of the data
    dataMember
    The table to bind to within the object returned by the DataSource property
    holdFields
    True to preserve design time layout
    keepPosition
    True to keep previously expanded groups in GroupBy mode.
    See Also