Provides a method to set both the DataSource and DataMember at run time.
Public Sub BindToDataAndErrors ( _ newDataSource As Object, _ newDataMember As String _ )
public void BindToDataAndErrors( Object newDataSource, string newDataMember )
public: void BindToDataAndErrors( Object^ newDataSource, String^ newDataMember )
member BindToDataAndErrors : newDataSource:Object * newDataMember:string -> unit
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2