以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  如何让表格不显示0值  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=23278)

--  作者:Fotable
--  发布时间:2012/9/7 16:37:00
--  如何让表格不显示0值
如何让表格不显示0值
--  作者:狐狸爸爸
--  发布时间:2012/9/7 16:49:00
--  

方法一:

http://www.foxtable.com/help/topics/1471.htm

 

方法二:

http://www.foxtable.com/help/topics/0656.htm

 

 

设置DrawCell事件:

 

if e.Col.name = "某某列" then

     if e.Text = "0" then

          e.Text = ""

     end if

end if


--  作者:程兴刚
--  发布时间:2012/9/7 16:55:00
--  

要想彻底搞定,下面的代码:

If e.col.IsNumeric = True
    If e.Row.IsNull(e.col.name) = False
        If e.Row(e.col.name) = 0
            e.Row(e.col.name) = Nothing
        End If
    End If
End If

 

哪一个事件,您自己先猜一猜!


--  作者:程兴刚
--  发布时间:2012/9/7 17:08:00
--  
晕,整了个马后炮,本想授人以渔,还被贺老师给穿帮了!