IDataErrorInfo

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; } } 


. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net