出库主表的prepareEdit事件,代码
If e.Col.Name = "订单客户" Then e.Col.ComboList = DataTables("订单主表").GetComboListString("订单客户","是否核销 = false")Else If e.Col.Name = "出库单号" Then If e.Row.DataRow.RowState <> DataRowState.Added Then e.Cancel = True End IfEnd If