Binding ContextChanged

This event is raised when the binding context for the XMLNode changes. The BindingContext object manages which data source you are binding to. If BindingContext changes, it may mean that the control is now bound to a different data source. The BindingContextChanged event enables you to take action when the BindingContext property of an XMLNode control is changed. The code in Listing 6.29 displays a message box.

Listing 6.29. Displaying a message when the binding context of an XMLNode control changes

Private Sub NameFirstNameNode_BindingContextChanged(ByVal _ sender As System.Object, ByVal e As _

Microsoft.Office.Tools.Word. _ NodeInsertAndDeleteEventArgs) Handles _ NameFirstNameNode.BindingContextChanged

MsgBox("BindingContext changed")

0 0

Post a comment