Posted 8 September 2017, 2:32 pm EST
What I'm trying to do is only show the up-down buttons in a cell in editmode, and only if it's a time-cell.
<font color="#0000ff"> Private Sub FpSpread1_EditModeOn(ByVal sender As Object, ByVal e As System.EventArgs) Handles FpSpread1.EditModeOn
Dim current As FarPoint.Win.Spread.FpSpread = CType(sender, FarPoint.Win.Spread.FpSpread)
If current.ActiveSheet.GetCellType(current.ActiveSheet.ActiveRow.Index, current.ActiveSheet.ActiveColumn.Index) Is GetType(FarPoint.Win.Spread.CellType.DateTimeCellType) Then
' Do stuff...
This does not seem to work, since the GetCellType equation is always false.
What do I do wrong?