Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL
Help

Chapter 17. Dynamically Populate a Repea... > What Does the Final Solution Look Li... - Pg. 272

272 CHAPTER 17 Dynamically Populate a Repeating Table LISTING 17.4 Clear Previous Entries (continued) for (int i = tableRows.Count; i > 0; i--) { XPathNavigator reTable = MainDataSource.CreateNavigator(); XPathNavigator reTableRows = reTable.SelectSingleNode("/my:myFields/my:group1/my:groupRepeat[" + i + "]", NamespaceManager); reTableRows.DeleteSelf(); } } What Does the Final Solution Look Like? When all the code has been entered into the method properly, previewing the form populates the repeating table based on the selection in the drop-down, as shown in Figure 17.7.