バージョン

SupportDataErrorInfo プロパティ (UltraGridColumn)

関連付けられたセルにエラー情報を表示するため、基になる行オブジェクトに実装されたIDataErrorInfoインターフェイスを使用するかどうかを指定します。
シンタックス
'宣言
 
Public Property SupportDataErrorInfo As Infragistics.Win.DefaultableBoolean
public Infragistics.Win.DefaultableBoolean SupportDataErrorInfo {get; set;}
解説

関連付けられたセルにエラー情報を表示するため、基になる行オブジェクトに実装されたIDataErrorInfoインターフェイスを使用するかどうかを指定します。

使用例
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;
		}
参照