[]
Provides a method to set both the DataSource and DataMember at run time.
public void BindToDataAndErrors(object newDataSource, string newDataMember)
Type | Name | Description |
---|---|---|
object | newDataSource | A data set based on the IList interface to be monitored for errors. Typically, this is a DataSet to be monitored for errors. |
string | newDataMember | A collection within the newDataSource to monitor for errors. Typically, this will be a DataTable. |
To avoid conflicts at run time that can occur when changing DataSource and DataMember, you should use BindToDataAndErrors instead of setting DataSource and DataMember individually.