public void DeleteDelimitingRule(string rule) { DataRow row1 = ParsingTable.FindByRule(rule); if (row1 != null) { row1.Delete(); } ParsingTable.AcceptChanges(); DataRow[] rows = MappingTable.Select("Rule = '" + rule + "'"); foreach (DataRow row2 in rows) { row2.Delete(); } MappingTable.AcceptChanges(); }