Version

SupportDataErrorInfo Property (FieldSettings)

Specifies whether to display field error information provided by the IDataErrorInfo implementation of the underlying data items from the bound data source. Default value is resolved based on the FieldLayoutSettings' SupportDataErrorInfo property setting.
Syntax
'Declaration
 
Public Property SupportDataErrorInfo As Nullable(Of Boolean)
public Nullable<bool> SupportDataErrorInfo {get; set;}
Remarks

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.

Example
The following code sets the SupportDataErrorInfo to True on 'the FirstName' field.

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;
			}
		}
        <igDP:XamDataGrid
            
x:Name="_dataPresenter"
            
Grid.Column="1"
        
>
            
<igDP:XamDataGrid.FieldLayouts>

                
<igDP:FieldLayout IsDefault="true">
                    
<igDP:FieldLayout.Fields>

                        
<igDP:Field Name="FirstName">
                            
<igDP:Field.Settings>
                                
<igDP:FieldSettings SupportDataErrorInfo="True" />
                            
</igDP:Field.Settings>
                        
</igDP:Field>

                    
</igDP:FieldLayout.Fields>
                
</igDP:FieldLayout>
            
</igDP:XamDataGrid.FieldLayouts>

        
</igDP:XamDataGrid>
Requirements

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

See Also