DekGenius.com
[ Team LiB ] Previous Section Next Section

IDataErrorInfo

System.ComponentModel (system.dll)interface

This interface is implemented by classes that wish to provide additional error information to the user interface in data-binding scenarios. The Error property gives an error message that indicates what is wrong with the object. The Item property (which is the indexer in C#) allows the UI to find the specific error message for the property with a given name.

As an example, it is implemented by System.Data.DataView and the System.Windows.Forms.DataGrid uses it to display error information.

public interface IDataErrorInfo {
// Public Instance Properties
   public string Error{get; }
   public string this{get; }
}
    [ Team LiB ] Previous Section Next Section