Takes a collection of ValidationErrors and assigns it to the matching controls. The IList object should have Message and ControlID (optional) properties.

These controls must match in signature as follows: Must have the same name as the field and a 3 letter prefix. For example,

txtCompany - matches company field cmbCountry - matches the Country field

The input parameter is a generic IList value, but the type should be specifically Westwind.BusinessObjects.ValidationErrorCollection. The generic parameter is used here to avoid an assembly dependence.

public void AddValidationErrorsToBindingErrors(IList errors)


List of objects that have at least ControlID and Message properties

See also:

Class DataBinder

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic