1、锁定的行,不能删除;
2、多行情况的删除代码
DataTables("库存表").deletefor("产品 = '" & e.DataRow("设备名称") & "' and 序列号 in ('" & e.DataRow("序列号").Replace(",", "','") & "')" )