不需要的列不要输出
CreateFromDataTable(DataTable, RowNum, Filter, Sort, DataCols)
CreateFromDataTable(DataTable, RowNum, Filter, Sort, DataCol1, DataCol2, DataCol3...)
DataCols | 一个包括所有要显示列的列名的集合或数组,例如:
Dim nms() As String = "产品,客户,日期,数量".Split(",") .CreateFromDataTable(DataTables("订单"),True,"","",nms) |
DataCol1, DataCol2, DataCol3 | 字符型,用于指定要显示的列,例如:
.CreateFromDataTable(DataTables("订单"),False,"","","产品","单价","数量","日期","审核") |