'Declaration Public Property SupportDataErrorInfo As Nullable(Of Boolean)
public Nullable<bool> SupportDataErrorInfo {get; set;}
SupportDataErrorInfo property specifies whether to display field error information provided by the data items associated with data records. Data items provide error information by implementing IDataErrorInfo interface. The interface provides error information for the the entire data item as well as for each individual field. This property controls whether the data presenter displays the field error in the associated cell.
Default value of this property is resolved based on the value of FieldLayoutSettings' SupportDataErrorInfo property. If it's set to a value that displays cell error information, then this property will be resolved to True.
Imports Infragistics.Windows Imports Infragistics.Windows.Controls Imports Infragistics.Windows.Editors Imports Infragistics.Windows.DataPresenter Imports Infragistics.Windows.DataPresenter.Events Private Sub Dp_FieldLayoutInitialized(ByVal sender As Object, ByVal e As FieldLayoutInitializedEventArgs) If Object.Equals(e.FieldLayout.Key, "Customers") Then ' You can enable or disable data errors on a specific field by setting ' that field's SupportDataErrorInfo. e.FieldLayout.Fields("FirstName").Settings.SupportDataErrorInfo = True End If End Sub
using Infragistics.Windows; using Infragistics.Windows.Controls; using Infragistics.Windows.Editors; using Infragistics.Windows.DataPresenter; using Infragistics.Windows.DataPresenter.Events; private void dp_FieldLayoutInitialized( object sender, FieldLayoutInitializedEventArgs e ) { if ( object.Equals( e.FieldLayout.Key, "Customers" ) ) { // You can enable or disable data errors on a specific field by setting // that field's SupportDataErrorInfo. e.FieldLayout.Fields["FirstName"].Settings.SupportDataErrorInfo = true; } }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2