DesignerDataSourceView.GetDesignTimeData Method

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.

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

public:
virtual IEnumerable^ GetDesignTimeData (
	int minimumRows, 
	[OutAttribute] bool% isSampleData
)
public IEnumerable GetDesignTimeData (
	int minimumRows, 
	/** @attribute OutAttribute() */ /** @ref */ boolean isSampleData
)
Not applicable.

Parameters

minimumRows

The minimum number of rows to return.

isSampleData

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

Return Value

A DataSourceView object containing data to display at design time.

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

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: