System.Windows.Forms.ListControl.OnBindingContextChanged C# (CSharp) Method

OnBindingContextChanged() protected method

protected OnBindingContextChanged ( EventArgs e ) : void
e System.EventArgs
return void
		protected override void OnBindingContextChanged (EventArgs e)
		{
			base.OnBindingContextChanged (e);
			if (last_binding_context == BindingContext)
				return;

			last_binding_context = BindingContext;
			ConnectToDataSource ();

			if (DataManager != null) {
				SetItemsCore (DataManager.List);
				if (AllowSelection)
					SelectedIndex = DataManager.Position;
			}
		}