读书人

关于itemchanged事件解决方法

发布时间: 2012-04-13 13:50:24 作者: rapoo

关于itemchanged事件
小弟的DW中有三个字段 art_no,descr,qty 我想实现手工录入这三个字段,如果art_no为空的时候不允许跳转到descr。。。

[解决办法]

方法(1)设置art_no列的edit下的Required属性为true
方法(2)在数据窗口的设计界面中的Column Specification面板上,为art_no列设置Validation Expression为“gettext() <> ''”,设置Validation Message为“'art_no列不能为空'”

不要在dw的itemerror事件中写代码,如果非得写代码,当列为art_no时,一定保证该事件返回值为0

读书人网 >PB

热点推荐