Effective method to delete rows from repeating table. Need help. - InfoPath Dev
in

InfoPath Dev

Effective method to delete rows from repeating table. Need help.

Last post 08-12-2008 01:05 AM by nik0.cmc. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 08-12-2008 01:05 AM

    Effective method to delete rows from repeating table. Need help.

    Hi.

    I need to delete some rows from repeating table. I'm using C#.

    I wrote next code, but it works slow. Does anybody know more effective method to do it.

     

     XPathNavigator root = this.MainDataSource.CreateNavigator();

    XPathNavigator tempRow;

    while ((tempRow = root.SelectSingleNode(
                    "/Schema/View_2/Table/TableWithVariant[Field_1 = '']")) != null)
                    tempRow.DeleteSelf();

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.