With Tables("发货计划表") For i As Integer = .TopPosition To .BottomPosition Dim r As Row = .Rows(i) r.Locked = True Dim dr As DataRow = DataTables("计划表").AddNew() dr("StokvisPN") = r("StokvisPN") dr("生产日期") = r("发货日期") dr("计划数量") = r("计划数量") Next End With