View.SelectNodes Method (XPathNavigator)
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)
The SelectNodes method was called from an event handler for the Loading event.
The parameter passed to this method is null.
The parameter passed to this method isnot valid. For example, it is of the wrong type or format.
If the specified range of nodes is bound to more than one control in the view, you must use the SelectNodes(XPathNavigator,XPathNavigator,String) method. This allows you to specify the ViewContext identifier of the control that is bound to the range of nodes you want to select.
The SelectNodes method requires that the specified nodes be structurally selectable in the view.
This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
This type or member can be accessed only from code running in forms opened in Microsoft Office InfoPath 2007.
In the following example, the SelectNodes(startNode) method is used to select the nodes in the first row in a Repeating Table control bound to group2.