Microsoft Office Tutorials and References
In Depth Information
Deleting or removing nodes from the main data source
Deleting or removing nodes from the main
data source
In the previous section, we saw how you can add a row to a recurring section or
recurring table during user interaction, or while a form is loading. Similarly, you
might also want to remove a node from a recurring section or recurring table.
To do so, you need to specify a row identity so that the program knows which row
has been selected. In the following example, we use an radio button in the user
interface. Here's the code to delete or remove a row:
public void btn_removeRow_Clicked(object sender, ClickedEventArgs e)
// Get a reference to the node the repeating table is bound to
XPathNavigator xNav = MainDataSource.CreateNavigator().
// Get radio button value
string rdValueCheck = xNav.SelectSingleNode("/my:myFields/my:
if (rdValueCheck == "1")
When the user clicks the RemoveRow button, after selecting a row, the selected row
will be removed.
Search JabSto ::

Custom Search