退出按钮:
Dim dt As Table = Tables("订单")Dim s As StringFor Each r As Row In dt.Rows If r.Locked = False s = s & r("产品") End IfNextIf s <> "" MessageBox.Show("有未锁定的行:" & s) ReturnEnd Ife.Form.Close