以下代码是在表中设置显示动态提示信息的功能,那么如果该表是属于窗口中的副本表,应该如何改写下面代码?
1、在MouseEnterCell事件设置代码:
If e.Col.Name = "备注" AndAlso e.Row.IsNull("备注") = False Then e.Table.ShowToolTip(e.Row("备注"),e.Row,e.Col)End If
2、在MouseLeaveCell事件设置代码:
If e.Col.Name = "备注" Then e.Table.HideToolTip()End If