Bewerken

Delen via


DetailsView.IsBindableType(Type) Method

Definition

Determines whether the specified data type can be bound to a field in the DetailsView control.

public:
 virtual bool IsBindableType(Type ^ type);
public virtual bool IsBindableType (Type type);
abstract member IsBindableType : Type -> bool
override this.IsBindableType : Type -> bool
Public Overridable Function IsBindableType (type As Type) As Boolean

Parameters

type
Type

A Type that represents the data type to check.

Returns

true if the specified data type can be bound to a field in the DetailsView control; otherwise, false.

Remarks

The IsBindableType method is a helper method called by the DetailsView control to determine whether the specified data type can be bound to a field in the control. The DetailsView control supports the following data types:

All primitive data types, such as Boolean, Byte, and Int32

DateTime

Decimal

Guid

String

Notes to Inheritors

When extending the DetailsView class, you can override this method to add or restrict the data types that can be used in a DetailsView control.

Applies to

See also