以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  当前行与合计行的表示方式  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=72911)

--  作者:zhchling
--  发布时间:2015/8/8 15:30:00
--  当前行与合计行的表示方式
 表属性里的drawcell事件里,我设置表样式



If e.Table.Current.Index = e.Row.Index Then
    e.style = "当前行"       \'样式名
End If

但是,当点到合计行时候,就发生了错误。

.NET Framework 版本:2.0.50727.3655
Foxtable 版本:2014.11.11.1
错误所在事件:表,userb,DrawCell
详细错误信息:
Exception has been thrown by the target of an invocation.
Object reference not set to an instance of an object.



--  作者:有点蓝
--  发布时间:2015/8/8 15:34:00
--  
合计行的Current为空的
判断一下 
If e.Table.Current Is Nothing Then \'如果Current为Nothing
    Return \'则返回
End If