
## set_data_source(self, data_source, cells_data_table) {#System.String-aspose.cells.ICellsDataTable}

Sets data source of a [`ICellsDataTable`](/cells/python-net/aspose.cells/icellsdatatable) object.



```python

def set_data_source(self, data_source, cells_data_table):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| data_source | System.String | The name of the data source. |
| cells_data_table | aspose.cells.ICellsDataTable | data table. |


## set_data_source(self, variable, data) {#System.String-System.Object}

Sets data binding to a variable.



```python

def set_data_source(self, variable, data):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| variable | System.String | Variable name created using smart marker. |
| data | System.Object | Source data. |



### See Also
* module [`aspose.cells`](../../)
* class [`ICellsDataTable`](/cells/python-net/aspose.cells/icellsdatatable)
* class [`WorkbookDesigner`](/cells/python-net/aspose.cells/workbookdesigner)
