DataBoundControlDesigner.GetSampleDataSource Method

Gets dummy sample data to render the data-bound control on the design surface if sample data cannot be created from the DataSourceDesigner or DataSource properties.

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

protected:
virtual IEnumerable^ GetSampleDataSource ()
protected IEnumerable GetSampleDataSource ()
protected function GetSampleDataSource () : IEnumerable
Not applicable.

Return Value

An object that implements the IEnumerable interface containing dummy sample data used to render the data-bound control on the design surface.

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: