Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

BaseDataListDesigner.GetDesignTimeDataSource Method (Int32, Boolean)

Generates an object that can be used as a data source at design time.

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

protected IEnumerable GetDesignTimeDataSource(
	int minimumRows,
	out bool dummyDataSource


Type: System.Int32

The minimum number of rows of sample data that the data source should contain.

Type: System.Boolean

true if the returned data source contains dummy data; false if the returned data source contains data from an actual data source.

Return Value

Type: System.Collections.IEnumerable
An object implementing an IEnumerable interface that serves as a data source for use at design time.

The BaseDataListDesigner.GetDesignTimeDataSource method attempts to construct a DataTable object from the data source that is defined by the DataSource and DataMember properties. If this is not possible, it creates a DataTable from dummy data.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
© 2015 Microsoft