Deleting rows of a repeating table in c#

M

morna

Can someone point me in the right direction to delete rows of a
repeating Infopath 2007 table in c#? I see it can be done in
javascript.

Thanks for your time.
 
Z

Zhang Haiguang

Please try the following codes:
public void CTRL5_5_Clicked(object sender, ClickedEventArgs e)
{
// Write your code here.
XPathNavigator root =
this.MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:group1/my:group2",
NamespaceManager);
this.CurrentView.SelectNodes(root);
this.CurrentView.ExecuteAction(ActionType.XCollectionRemove,
"group2_1");
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top