'Declaration Public Property SupportDataErrorInfo As SupportDataErrorInfo
public SupportDataErrorInfo SupportDataErrorInfo {get; set;}
SupportDataErrorInfo property specifies whether to display 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. The data presenter displays the data item error in the record selector of the data record and individual field error in the associated cell.
The error information is displayed in the form of an error icon, which displays a tooltip with the error text when the mouse is hovered over.
Note that the default value of this property is resolved to None, which means that by default the data error information is not displayed. You need to set this property to enable this functionality.
Note that the FieldSettings object exposes FieldSettings.SupportDataErrorInfo property. You can use that to show or hide a particular field's error information.
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; }
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