Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / March 2007

Tip: Looking for answers? Try searching our database.

Deleting rows of a repeating table in c#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
morna - 07 Mar 2007 23:35 GMT
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.
Zhang Haiguang - 08 Mar 2007 06:15 GMT
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");
       }
---------
InfoJet Service, a product likes InfoPath Forms Services,
http://www.infojetsoft.com
---------------------------------------------------------

> 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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.