windowsforms-devexpress-dot-xtraeditors-dot-lookupeditbase-a420ffc3.md
The LookUp editor no longer checks type compatibility of EditValue and ValueMember. Note that operations with incompatible data types can lead to severe issues.
Gets or sets whether to suppress the Invalid Value Type warning for all lookup editors in a WinForms application.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[Obsolete("The LookUp editor no longer checks type compatibility of EditValue and ValueMember. Note that operations with incompatible data types can lead to severe issues.")]
public static DefaultBoolean SuppressInvalidLookUpEditValueTypeWarning
<Obsolete("The LookUp editor no longer checks type compatibility of EditValue and ValueMember. Note that operations with incompatible data types can lead to severe issues.")>
Public Shared SuppressInvalidLookUpEditValueTypeWarning As DefaultBoolean
| Type | Description |
|---|---|
| DefaultBoolean |
True to suppress the warning when the editor is bound to a value of incompatible type; False, to warn about incompatible type only once; Default, to warn about incompatible type only once.
|
All lookup editors (LookUpEdit, SearchLookUpEdit, GridLookUpEdit, and GridLookUpEdit) warn if they are bound to a value of incompatible type, which can lead to various data type issues. By default, the warning is shown only once.
To suppress the warning for all lookup editors in a WinForms application, set the SuppressInvalidLookUpEditValueTypeWarning option to DefaultBoolean.True.
See Also