DesignTimeData.GetDesignTimeDataSource Method (DataTable, Int32)

 

Adds the specified number of sample rows to the specified data table.

Namespace:   System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)

Public Shared Function GetDesignTimeDataSource (
	dataTable As DataTable,
	minimumRows As Integer
) As IEnumerable

Parameters

dataTable
Type: System.Data.DataTable

The DataTable object to which the sample rows are added.

minimumRows
Type: System.Int32

The minimum number of rows to add.

Return Value

Type: System.Collections.IEnumerable

An object implementing IEnumerable containing sample data for use at design time.

.NET Framework
Available since 1.1
Return to top
Show: