[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IWorkbook.AddDataSource

AddDataSource Method

AddDataSource(string, object)

为模板添加数据源。

Declaration
void AddDataSource(string name, object dataSource)
Parameters
Type Name Description
string name

数据源的别名

object dataSource

可以是DataSet、DataTable、自定义对象和变量的对象