March 2003
Intermediate to advanced
896 pages
32h 35m
English
IDataErrorInfo
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; } }
Read now
Unlock full access