没有这个选项,可以通过自定义单元格做,如果0值当空处理
- Public Class MyNumber
- Inherits FarPoint.Win.Spread.CellType.NumberCellType
- Public Overrides Sub PaintCell(ByVal g As Graphics, ByVal r As Rectangle, ByVal appearance As FarPoint.Win.Spread.Appearance, ByVal value As Object, ByVal isSelected As Boolean, ByVal isLocked As Boolean, ByVal zoomFactor As Single)
- If value = 0 Then
- value = " "
- End If
- MyBase.PaintCell(g, r, appearance, value, isSelected, isLocked, zoomFactor)
- End Sub
- End Class
复制代码 |