[]
        
(Showing Draft Content)

C1.Win.FlexGrid.C1FlexGridBase.SetDataBinding

SetDataBinding Method

SetDataBinding(object, string)

Sets the DataSource and DataMember properties.

Declaration
public void SetDataBinding(object dataSource, string dataMember)
Public Sub SetDataBinding(dataSource As Object, dataMember As String)
Parameters
Type Name Description
object dataSource

The new data source object.

string dataMember

The table to bind to within the data source object.

SetDataBinding(object, string, bool)

Sets the DataSource and DataMember properties, optionally keeping the current column layout.

Declaration
public void SetDataBinding(object dataSource, string dataMember, bool preserveLayout)
Public Sub SetDataBinding(dataSource As Object, dataMember As String, preserveLayout As Boolean)
Parameters
Type Name Description
object dataSource

The new data source object.

string dataMember

The table to bind to within the data source object.

bool preserveLayout

Whether the current column layout should be preserved or re-generated automatically based on the data source schema.