spread绑定数据,在datafill事件中,设置当某一列的单元格为空时,该单元格格式button
Private Sub fpSpreadRpt_DataFill(ByVal Col As Long, ByVal Row As Long, ByVal DataType As Integer, ByVal fGetData As Integer, Cancel As Integer)
If Col = 3 Then
If fpSpreadRpt.GetText(3, Row, m_Data) Then
If m_Data = "" Then
With fpSpreadRpt
.Col = 3
.Col2 = 3
.Row = Row
.Row2 = Row
.CellType = CellTypeButton
End With
End If
End If
End If
End Sub
但是该列并不显示Button,请教一下为什么,如何往下 |
|