Share via


DataTableDataSourceView.CreateDataTable Method

Creates an object that represents a DataTable with a string column for each entry in the ColumnNames property.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Protected Overridable Function CreateDataTable As DataTable
'Usage
Dim returnValue As DataTable

returnValue = Me.CreateDataTable()
protected virtual DataTable CreateDataTable()

Return Value

Type: System.Data.DataTable
An object that represents a DataTable composed of string-based DataColumns entries for each entry in the ColumnNames property.

Remarks

A DataTable is composed of columns which can be of several types. The CreateDataTable() function specifically creates string columns for each entry in the ColumnNames set.

See Also

Reference

DataTableDataSourceView Class

DataTableDataSourceView Members

Microsoft.SharePoint.WebControls Namespace