以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  关于DataColChanged事件的问题  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=78454)

--  作者:yumo123
--  发布时间:2015/12/9 14:49:00
--  关于DataColChanged事件的问题
Select Case e.DataCol.Name
    Case "金额"

        If e.NewValue <0 Then
            e.Cancel = True
        End If

End Select


请问这个撤销数值的代码我写在DataColChanged事件中,在金额列里面没有输入负数,写在DataColChangeing中才有反应。
是不是这个代码不能用在DataColChanged事件中??
[此贴子已经被作者于2015/12/9 14:49:41编辑过]

--  作者:大红袍
--  发布时间:2015/12/9 14:51:00
--  
写到DataColChanging事件
--  作者:yumo123
--  发布时间:2015/12/9 14:52:00
--  
谢谢,刚才又看了一边帮助,发现确实好像没有cancel的属性