ComponentOne FlexPivot for WinForms
C1.Win.FlexPivot.4.5.2 Assembly / C1.Win.FlexPivot Namespace / C1FlexPivotGrid Class / SetDataBinding Method / SetDataBinding(Object,String,Boolean) Method
The new data source object.
The table to bind to within the data source object.
Whether the current column layout should be preserved or re-generated automatically based on the data source schema.

In This Topic
    SetDataBinding(Object,String,Boolean) Method
    In This Topic
    Sets the C1.Win.C1FlexGrid.C1FlexGridBase.DataSource and C1.Win.C1FlexGrid.C1FlexGridBase.DataMember properties, optionally keeping the current column layout.
    Syntax
    'Declaration
     
    Public Overloads Sub SetDataBinding( _
       ByVal dataSource As Object, _
       ByVal dataMember As String, _
       ByVal preserveLayout As Boolean _
    ) 
    public void SetDataBinding( 
       object dataSource,
       string dataMember,
       bool preserveLayout
    )

    Parameters

    dataSource
    The new data source object.
    dataMember
    The table to bind to within the data source object.
    preserveLayout
    Whether the current column layout should be preserved or re-generated automatically based on the data source schema.
    See Also