[]
        
(Showing Draft Content)

C1.Win.C1TrueDBGrid.BaseGrid.Frame.SetDataBinding

SetDataBinding Method

SetDataBinding(object, string, bool, bool)

Binds the grid at runtime

Declaration
public void SetDataBinding(object dataSource, string dataMember, bool holdFields, bool keepPosition)
Parameters
Type Name Description
object dataSource

Source of the data

string dataMember

The table to bind to within the object returned by the DataSource property

bool holdFields

True to preserve design time layout

bool keepPosition

True to keep previously expanded groups in GroupBy mode.

SetDataBinding(object, string, bool)

Binds the grid at runtime

Declaration
public void SetDataBinding(object dataSource, string dataMember, bool holdFields)
Parameters
Type Name Description
object dataSource

Source of the data

string dataMember

The table to bind to within the object returned by the DataSource property

bool holdFields

True to preserve design time layout

SetDataBinding(object, string)

Binds the grid at runtime

Declaration
public void SetDataBinding(object dataSource, string dataMember)
Parameters
Type Name Description
object dataSource

Source of the data

string dataMember

The table to bind to within the object returned by the DataSource property

Remarks

The call to SetDataBinding(object dataSource, string dataMember) assumes false for the holdFields arguments.

SetDataBinding()

Configures the grid for use without a datasource.

Declaration
public void SetDataBinding()