Version

DataErrorRowAppearance Property

Determines the formatting attributes that will be applied to the rows with data errors. A row is considered to have a data error if it's underlying list object implements IDataErrorInfo interface and querying that IDataErrorInfo indicates that the row has errors.
Syntax
'Declaration
 
Public Property DataErrorRowAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase DataErrorRowAppearance {get; set;}
Remarks

The DataErrorRowAppearance will only be applied if SupportDataErrorInfo is set to support data error info for rows.

Example
Following code enables support for IDataErrorInfo in UltraWinGrid and shows related properties. NOTE: In order to see the functionality work, the underlying data rows must implement IDataErrorInfo interface and have data errors.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid


    Private Sub UltraGrid1_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles ultraGrid1.InitializeLayout
        ' Setting SupportDataErrorInfo turns on the support for IDataErrorInfo.
        e.Layout.Override.SupportDataErrorInfo = SupportDataErrorInfo.RowsAndCells

        ' Set the appearance of cells, rows, and row selectors that have data errors.
        e.Layout.Override.DataErrorCellAppearance.BackColor = Color.Red
        e.Layout.Override.DataErrorRowSelectorAppearance.BackColor = Color.Red
        e.Layout.Override.DataErrorRowAppearance.BackColor = Color.Blue

        ' You can turn of IDataErrorInfo support on a specific column by setting
        ' its SupportDataErrorInfo property.
        e.Layout.Bands(0).Columns(0).SupportDataErrorInfo = DefaultableBoolean.False
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;


		private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
		{
			// Setting SupportDataErrorInfo turns on the support for IDataErrorInfo.
			e.Layout.Override.SupportDataErrorInfo = SupportDataErrorInfo.RowsAndCells;

			// Set the appearance of cells, rows, and row selectors that have data errors.
			e.Layout.Override.DataErrorCellAppearance.BackColor = Color.Red;
			e.Layout.Override.DataErrorRowSelectorAppearance.BackColor = Color.Red;
			e.Layout.Override.DataErrorRowAppearance.BackColor = Color.Blue;
			
			// You can turn of IDataErrorInfo support on a specific column by setting
			// its SupportDataErrorInfo property.
			e.Layout.Bands[0].Columns[0].SupportDataErrorInfo = DefaultableBoolean.False;
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, 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