以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]请问代码哪里错了  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=56600)

--  作者:weijun
--  发布时间:2014/9/9 15:38:00
--  [求助]请问代码哪里错了

.NET Framework 版本:2.0.50727.3053
Foxtable 版本:2014.9.2.1
错误所在事件:表,质量证明书,PrepareEdit
详细错误信息:
Exception has been thrown by the target of an invocation.
Items collection cannot be modified when the DataSource property is set.

 

PrepareEdit

Select Case e.Col.Name   
    Case "许可证编号","提货单位","执行标准","牌号","尺寸","长度","购货单位"
        e.Col.ComboList = DataTables("质量证明书").GetComboListString(e.Col.name)
End Select



--  作者:Bin
--  发布时间:2014/9/9 15:44:00
--  
请上例子,代码没问题,我新建项目测试运行也没有错误.