Assembly: System.Web (in system.web.dll)
An object set to the DataSource property.
The object passed by the dataSource parameter is not a null reference (Nothing in Visual Basic) or a recognized type.
The ValidateDataSource method is only called in the BaseDataBoundControl class's mutator (set accessor) for the DataSource property. The DataBoundControl class checks the type of the object that is set for the DataSource property to ensure that it is an instance of the IDataSource, IListSource, or IEnumerable interface.