
DesignTimeData | 687
UI.Design
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
DataSourceConverter
System.Web.UI.Design (system.design.dll)
class
This class provides a System.ComponentModel.TypeConverter that can be used to convert a
string to a data source object and vice versa. You will not need to access this class
directly, unless you want to use it for a custom ASP.NET control—in which case you
can bind it to the DataSource property by using the System.ComponentModel.TypeConverterAttribute.
Hierarchy
System.Object ➝ System.ComponentModel.TypeConverter ➝ DataSourceConverter
DesignTimeData
System.Web.UI.Design (system.design.dll)
sealed class
This class provides shared helper methods that the design-time host (IDE) can use to
generate “dummy” information for a sample rendering of a complex control. Typi-
cally, this class is used with table controls, as maintaining a database connection in
design mode would be too resource-intensive, and the data source provider may not
even be available. Using the CreateDummyDataTable( ) method, a default table is created that
uses no information from the actual data source. This table could be used before a
control’s DataSource property is set.
Visual Studio .NET can also use a minimum amount of information to help present a
design-time rendering of data tables. The GetDataFields( ) and