Version

DataErrorDisplayMode Property

Specifies if and how to display cell and record data error information.
Syntax
'Declaration
 
Public Property DataErrorDisplayMode As DataErrorDisplayMode
public DataErrorDisplayMode DataErrorDisplayMode {get; set;}
Remarks

By default cell and record data errors are not displayed. You can enable this functionality by setting the SupportDataErrorInfo property. When the functionality is enabled, DataErrorDisplayMode property controls how to display the data error information. By default, a data error icon is displayed in the cell or the record selector to display cell data error and record data error respectively. You can use this property to control how the data error is displayed.

Example
Imports Infragistics.Windows
Imports Infragistics.Windows.Controls
Imports Infragistics.Windows.Editors
Imports Infragistics.Windows.DataPresenter
Imports Infragistics.Windows.DataPresenter.Events

    Private Sub Window1_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
        _dataPresenter.FieldLayoutSettings.SupportDataErrorInfo = SupportDataErrorInfo.RecordsAndCells
        _dataPresenter.FieldLayoutSettings.DataErrorDisplayMode = DataErrorDisplayMode.ErrorIconAndHighlight
    End Sub
using Infragistics.Windows;
using Infragistics.Windows.Controls;
using Infragistics.Windows.Editors;
using Infragistics.Windows.DataPresenter;
using Infragistics.Windows.DataPresenter.Events;

		public void Window1_Loaded( object sender, RoutedEventArgs e )
		{
			_dataPresenter.FieldLayoutSettings.SupportDataErrorInfo = SupportDataErrorInfo.RecordsAndCells;
			_dataPresenter.FieldLayoutSettings.DataErrorDisplayMode = DataErrorDisplayMode.ErrorIconAndHighlight;
		}
        <igDP:XamDataGrid
            
x:Name="_dataPresenter"
            
Grid.Column="1"
        
>
            
<igDP:XamDataGrid.FieldLayoutSettings>
                
<igDP:FieldLayoutSettings SupportDataErrorInfo="RecordsAndCells" DataErrorDisplayMode="ErrorIconAndHighlight" />
            
</igDP:XamDataGrid.FieldLayoutSettings>
            
        
</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