以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  代码问题  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=94689)

--  作者:chen1029
--  发布时间:2016/12/29 14:49:00
--  代码问题

If e.DataCol.name = "aaa" Then
    Dim ary() As String = {"1", "2", "3", "4", "5", "6"}
    If array.IndexOf(ary, e.DataRow("
")) >= 0 AndAlso array.IndexOf(ary, e.DataRow("")) >= 0 AndAlso array.IndexOf(ary, e.DataRow("")) >= 0 Then
        e.DataRow("aaa") = "√"
    Else
        e.DataRow("aaa") = Nothing
    End If
   
 
End If

在执行时提示:编译错误: "e"是"private",因此它在此上下文中不可访问

错误代码 If e.DataCol.name = "aaa" Then

这是怎么回事呢,求指教?


--  作者:有点色
--  发布时间:2016/12/29 15:12:00
--  

 代码写到 DataColChanged 事件去。