在销售明细表的PrepareEdit事件中
If e.Col.Name = "客户" Then e.Col.ComboList = DataTables("销售明细表").GetComboListString("客户")End If