Back to Devexpress

RepositoryItemLookUpEditBase.ThrowExceptionOnInvalidLookUpEditValueType Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemlookupeditbase-a7837322.md

latest2.1 KB
Original Source

RepositoryItemLookUpEditBase.ThrowExceptionOnInvalidLookUpEditValueType Property

Gets or sets whether the LookUp editor automatically detects data type issues and throws an exception.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Behavior")]
public virtual bool ThrowExceptionOnInvalidLookUpEditValueType { get; set; }
vb
<DXCategory("Behavior")>
Public Overridable Property ThrowExceptionOnInvalidLookUpEditValueType As Boolean

Property Value

TypeDescription
Boolean

true to throw an exception when data type issues occur; otherwise, false.

|

Remarks

The ValueMember property specifies a data source field with unique/key values. The type of this field must match the type of the EditValue property. Enable the ThrowExceptionOnInvalidLookUpEditValueType option to detect data type issues.

See Also

How to: Create Lookup Editor and Bind It to Data Source

RepositoryItemLookUpEditBase Class

RepositoryItemLookUpEditBase Members

DevExpress.XtraEditors.Repository Namespace