[]
Sets the DataSource and DataMember properties.
public void SetDataBinding(object dataSource, string dataMember)
| 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)
| 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. |