DesignerDataSourceView.GetDesignTimeData(Int32, Boolean) Method

Definition

Generates design-time data that matches the schema of the associated data source control using the specified number of rows, indicating whether it is returning sample data or real data.

C#
public virtual System.Collections.IEnumerable GetDesignTimeData(int minimumRows, out bool isSampleData);

Parameters

minimumRows
Int32

The minimum number of rows to return.

isSampleData
Boolean

true to indicate that the returned data is sample data; false to indicate that the returned data is live data.

Returns

A DataSourceView object containing data to display at design time.

Examples

For a complete example of using the GetDesignTimeData method with views, schemas, and a data source designer, see DataSourceDesigner.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also