This documentation is archived and is not being maintained.

BaseDataList::IsBindableType Method

Determines whether the specified data type can be bound to a list control that derives from the BaseDataList class.

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

public:
static bool IsBindableType(
	Type^ type
)

Parameters

type
Type: System::Type

A System::Type that contains the data type to test.

Return Value

Type: System::Boolean
true if the specified data type can be bound to a list control that derives from the BaseDataList class; otherwise, false.

Use the IsBindableType static method to determine whether the specified data type can be bound to a list control that inherits from the BaseDataList class. The supported data types are System::Boolean, System::Byte, System::SByte, System::Int16, System::UInt16, System::Int32, System::UInt32, System::Int64, System::UInt64, System::Char, System::Double, System::Single, System::DateTime, System::Decimal, and System::String.

The following code example demonstrates how to use the IsBindableType property to determine whether values of a certain data type can be bound to a DataGrid control.

No code example is currently available or this language may not be supported.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
Show: