[]
Sets the DataSource and DataMember properties.
public void SetDataBinding(object dataSource, string dataMember)
Public Sub SetDataBinding(dataSource As Object, dataMember As String)
| Type | Name | Description |
|---|---|---|
| object | dataSource | The new data source object. |
| string | dataMember | The table to bind to within the data source object. |
Sets the DataSource and DataMember properties, optionally keeping the current column layout.
public void SetDataBinding(object dataSource, string dataMember, bool preserveLayout)
Public Sub SetDataBinding(dataSource As Object, dataMember As String, preserveLayout As Boolean)
| 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. |